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