コード例 #1
0
 // GET: Store. Loads up the storemodel
 public ActionResult Index(StoreEntities storeEnts)
 {
     storeEnts.GetGames();
     if (Request.IsAuthenticated)
     {
         User user = (User)Session["User"];
         storeEnts.GetWishlist(user);
     }
     ViewBag.ListType = "Games in the store: ";
     return(View("Index", storeEnts));
 }