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