Beispiel #1
0
        public GameModel Play(int index, Guid gameId)
        {
            var gameModel = _repository.Read(gameId);
            var hasPlayed = gameModel.Play(index);

            _repository.Update(gameModel);
            return(gameModel);
        }
Beispiel #2
0
        public async Task <GameModel> Play(int index, Guid gameId)
        {
            var gameModel = await _repository.Read(gameId);

            var hasPlayed = gameModel.Play(index);
            await _repository.Update(gameModel);

            return(gameModel);
        }
 public async Task <GameModel> Read(Guid gameID)
 {
     return(await _gameModelRepository.Read(gameID));
 }