Example #1
0
        public IActionResult GameSummary(string gameId)
        {
            var game = GetGame(gameId);

            game.Hands.ToList().ForEach(hand => _scoreRepository.RecordScores(hand));
            var gameCoins = _scoreRepository.GameCoins(game.Id);

            return(Json(gameCoins.Select(p => new {
                name = p.Name,
                score = p.Coins
            })));
        }