using ODMO.Commons.Interfaces; using MediatR; namespace ODMO.Application.Separar.Commands.Update { public class UpdateDigimonSizeCommandHandler : IRequestHandler { private readonly ICharacterCommandsRepository _repository; public UpdateDigimonSizeCommandHandler(ICharacterCommandsRepository repository) { _repository = repository; } public async Task Handle(UpdateDigimonSizeCommand request, CancellationToken cancellationToken) { await _repository.UpdateDigimonSizeAsync(request.DigimonId, request.Size); return Unit.Value; } } }