public ActionResult Filter3(int id = 0) { ViewBag.CategoryID = id; List <Product> Products = ProductDataContext.InsertProducts21(id); return(View(Products)); }
public ActionResult Insert11(int id = 0) { ViewBag.CategoryID = id; List <Product> products = ProductDataContext.InsertProducts21(id); return(Json(products, JsonRequestBehavior.AllowGet)); }