Пример #1
0
 public ActionResult VideoGameDetail(int?Id)
 {
     if (Id.HasValue)
     {
         var result = _videoGameService.GetVideoGameDetailsByVideoGameId(Id.Value);
         TempData["GetRandomVideoGame"] = _videoGameService.GetRandomVideoGameDetailsByCategoryId(result.CategoryId);
         return(View(result));
     }
     return(RedirectToAction("PageNotFound", "Error"));
 }