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