示例#1
0
        public ActionResult Filter(int id = 0)
        {
            ViewBag.CategoryID = id;
            List <Product> Products = ProductDataContext.LoadProducts51(id);

            return(View(Products));
        }
示例#2
0
        public ActionResult Index6(int id = 0)
        {
            ViewBag.CategoryID = id;
            List <Product> Products = ProductDataContext.LoadProducts51(id);

            return(Json(Products, JsonRequestBehavior.AllowGet));
        }