コード例 #1
0
        public void getTopPro()
        {
            BL.Product           productLogic = new BL.Product();
            List <Product_table> selectedPro  = productLogic.getTopSellingProduct();

            ViewBag.selectedPro = selectedPro;
        }
コード例 #2
0
 // GET: User
 public ActionResult Home()
 {
     if (Session["user"] != null)
     {
         ViewBag.selectedVendor = VendorLogic.getTopTrendVendors();
         ViewBag.selectedPro    = productLogic.getTopSellingProduct();
         List <ProductModel> topSeller = ul.topSellerSup();
         ViewBag.topSeller = topSeller;
         ViewBag.lastAdded = ul.lastAdded();
         return(View());
     }
     else
     {
         return(RedirectToAction("Index", "Home"));
     }
 }