示例#1
0
        public ActionResult Index()
        {
            PurchaseProduct purchaseProduct = new PurchaseProduct();

            ViewBag.Auth     = "true";
            ViewBag.UserName = Session["UserName"];
            int userId = Convert.ToInt32(Session["UserId"]);

            ViewData["PurchasedProduct"] = purchaseProduct.ListAll(userId);
            return(View());
        }