示例#1
0
        public ActionResult ProductDestroy([DataSourceRequest] DataSourceRequest request, Product product)
        {
            BL.Products blProducts = new BL.Products();
            Product     model      = blProducts.SoftDelete(product);

            return(Json(new[] { model }.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet));
        }
示例#2
0
        public ActionResult ProductSelectAll([DataSourceRequest] DataSourceRequest request)
        {
            BL.Products    blProducts = new BL.Products();
            List <Product> model      = blProducts.SelectAll();

            return(Json(model.ToDataSourceResult(request), JsonRequestBehavior.AllowGet));
        }