Esempio n. 1
0
        public async Task <GameDetail> Get(Guid id)
        {
            var game = _gameDataRepository.FirstOrDefault <Game>(x => x.Id == id);

            // Has to be a better way than to re-calculate the game score

            var gameScores = _gameDataRepository.Get <Score>(x => x.GameId == id);

            var gameDetail = GetDetailFromGame(game, gameScores);

            return(await Task.FromResult(gameDetail));
        }