public void getTrendVendors() { BL.Vendor VendorLogic = new BL.Vendor(); List <User_table> selectedVendor = VendorLogic.getTopTrendVendors(); ViewBag.selectedVendor = selectedVendor; }
// 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")); } }