using ODMO.Commons.Interfaces; using MediatR; namespace ODMO.Application.Separar.Commands.Update { public class UpdateMapConfigCommandHandler : IRequestHandler { private readonly IConfigCommandsRepository _repository; public UpdateMapConfigCommandHandler(IConfigCommandsRepository repository) { _repository = repository; } public async Task Handle(UpdateMapConfigCommand request, CancellationToken cancellationToken) { await _repository.UpdateMapConfigAsync(request.MapConfig); return Unit.Value; } } }