using ODMO.Commons.Interfaces; using MediatR; namespace ODMO.Application.Separar.Commands.Delete { public class DeleteAdminUserCommandHandler : IRequestHandler { private readonly IConfigCommandsRepository _repository; public DeleteAdminUserCommandHandler(IConfigCommandsRepository repository) { _repository = repository; } public async Task Handle(DeleteAdminUserCommand request, CancellationToken cancellationToken) { await _repository.DeleteAdminUserAsync(request.UserId); return Unit.Value; } } }