コード例 #1
0
        // 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));
        }
コード例 #2
0
ファイル: LayerController.cs プロジェクト: liusile/WGProject
        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));
        }