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