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)); }
public ActionResult ProductSelectAll([DataSourceRequest] DataSourceRequest request) { BL.Products blProducts = new BL.Products(); List <Product> model = blProducts.SelectAll(); return(Json(model.ToDataSourceResult(request), JsonRequestBehavior.AllowGet)); }