예제 #1
0
        public IActionResult Detail(int id)
        {
            var game  = _games.GetById(id);
            var model = new GameDetail
            {
                GameId      = id,
                Title       = game.Title,
                Genre       = game.Genre,
                ImageUrl    = game.ImageUrl,
                Platform    = game.Platform,
                Rating      = game.Rating,
                ReleaseYear = game.ReleaseYear
            };

            return(View(model));
        }