public ActionResult Detail(int id) { var videoGames = VideoGameManager.GetVideoGames(); var videoGame = videoGames.FirstOrDefault(p => p.VideoGameID == id); return(View(videoGame)); }
// GET: Home public ActionResult Index() { var videoGames = VideoGameManager.GetVideoGames(); return(View(videoGames)); }