コード例 #1
0
        public void getTrendVendors()
        {
            BL.Vendor         VendorLogic    = new BL.Vendor();
            List <User_table> selectedVendor = VendorLogic.getTopTrendVendors();

            ViewBag.selectedVendor = selectedVendor;
        }
コード例 #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"));
     }
 }