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