Exemplo n.º 1
0
        public async Task <Unit> Handle(UploadGameCommand command, CancellationToken cancellationToken)
        {
            var newGame = GameFile.Create(command.Id, command.GameName, command.File);

            _gameRepository.Add(newGame);

            await _unitOfWork.CommitAsync(cancellationToken);

            return(Unit.Value);
        }