// GET: Product public ActionResult Index(string name, int page = 1) { ViewBag.Brand = name; Models.Product pro = new Models.Product(); return(View(pro.GetProductByBrand(name).ToPagedList(page, 6))); }
// GET: Product public ActionResult Index(string name, int page = 1) { ViewBag.Brand = name; Models.Product pro = new Models.Product(); return(View(pro.GetProductByBrand(name).ToPagedList(page, 6))); }