// GET: Shop //public ActionResult Index() //{ // return View(DbInteract.GetTopProducts(6)); //} public ActionResult Index(int?page) { page = page == null ? 1 : page; int get = (int)page; return(View(DbInteract.GetTopProducts(get * 6))); }
public ActionResult Index() { ViewBag.Top5 = DbInteract.GetTopProducts(5); return(View(DbInteract.GetAllProducts())); }