// GET: Product public ActionResult Index(int p = 1, string searchFild = "") { var model = ProductManageBz.Query( ProductManageBz.LoadAll(o => o.ProductName.Contains(searchFild)).OrderByDescending(o => o.ProductId), p, 10); ViewBag.searchFild = searchFild; return(View(model)); }
public ActionResult ProductStockList(string filter, int p = 1, string searchFild = "") { var arr = filter.Split('|'); ViewBag.filter = filter; var model = ProductManageBz.Query( ProductManageBz.LoadAll(o => !arr.Contains(o.ProductName) && o.ProductName.Contains(searchFild)).OrderByDescending(o => o.ProductId), p, 10); ViewBag.searchFild = searchFild; return(View(model)); }