using ODMO.Commons.Repositories.Admin; using MediatR; namespace ODMO.Application.Admin.Commands { public class DeleteUserCommandHandler : IRequestHandler { private readonly IAdminCommandsRepository _repository; public DeleteUserCommandHandler(IAdminCommandsRepository repository) { _repository = repository; } public async Task Handle(DeleteUserCommand request, CancellationToken cancellationToken) { await _repository.DeleteUserAsync(request.Id); return Unit.Value; } } }