using ODMO.Commons.Interfaces; using MediatR; namespace ODMO.Application.Separar.Commands.Update { public class UpdateAccountCommandHandler : IRequestHandler { private readonly IAccountCommandsRepository _repository; public UpdateAccountCommandHandler(IAccountCommandsRepository repository) { _repository = repository; } public async Task Handle(UpdateAccountCommand request, CancellationToken cancellationToken) { await _repository.UpdateAccountAsync(request.Account); return Unit.Value; } } }