// GET: Home public ActionResult Index(StoreEntities storeEnts) { storeEnts.GetMostBought(); if (Request.IsAuthenticated) { User user = (User)Session["User"]; storeEnts.GetWishlist(user); } ViewBag.ListType = "Most bought games: "; return(View("Index", storeEnts)); }