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