Esempio n. 1
0
        public ActionResult Product(int cateid = 0, int isonsale = -1)
        {
            ProductCache pcache = RemotingHelp.GetModelObject <ProductCache>();

            ViewBag.productList = pcache.GetProductList(cateid, isonsale);
            ViewBag.cateid      = cateid;
            PRODUCT product = RemotingHelp.GetModelObject <PRODUCT>();

            ViewBag.cates    = product.GetCategories();
            ViewBag.isonsale = isonsale;
            return(View());
        }