Exemple #1
0
        public ActionResult Review(Guid id)
        {
            var game = _highScoreRepository.ListScores()
                       .Select(e => e.GameState)
                       .OfType <HangmanGame>()
                       .Single(g => g.Id == id);

            return(View("ShowGame", game));
        }
Exemple #2
0
 public ActionResult Scores()
 {
     return(View(_highScoreRepository.ListScores()));
 }
Exemple #3
0
 public override void RenderBlock()
 {
     Html.RenderPartial(@"Games\Home\Scores", _highScoreRepository.ListScores().Take(3));
 }