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