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