public ActionResult UpdateVideoGame(int Id) { var allCategory = _categoryService.GetAllByMainCategoryId(3); // 1 = Movie 2= Series 3= VideoGames 4=Book List <SelectListItem> category = (from i in allCategory select new SelectListItem { Value = i.Id.ToString(), Text = i.Name }).ToList(); ViewBag.Category = category; var videoGame = _videoGameService.GetById(Id); TempData["ImageURL"] = videoGame.ImageURL; return(View(videoGame)); }