Exemplo n.º 1
0
 public ActionResult WishList(StoreEntities storeEnts)
 {
     if (Request.IsAuthenticated)
     {
         User user = (User)Session["User"];
         storeEnts.GetWishlist(user);
     }
     ViewBag.ListType = "Games in your Wishlist: ";
     return(View("Index", storeEnts));
 }
Exemplo n.º 2
0
        // 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));
        }