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