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