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