public ActionResult Detail(string id = "", string name = "", int cateid = 0, string catename = "", int page = 1, string sort = "standard") { if (sort == "standard") { sort = "cHJpY2UsKw=="; } ProductInfo product = ProductShoppingUtils.getDetail(1, cateid, sort, "", "", catename, id); ViewBag.Title = product.name; return(View(product)); }
// GET: yahooshopping/Product public ActionResult Category(int id = 0, string name = "", int page = 1, string sort = "standard") { if (sort == "standard") { sort = "cHJpY2UsKw=="; } Pager pager = new Pager(10, 100, 5, Request.Url.AbsoluteUri); var list = ProductShoppingUtils.getProductList(page, id, sort, "", "", name); ViewBag.Title = name; ViewBag.url = Request.Url.AbsoluteUri; return(View(list)); }
// GET: yahooshopping/Home public ActionResult Index() { List <ProductInfo> list = ProductShoppingUtils.getProductHome(); return(View(list)); }