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