public ActionResult OrderDetailDestroy([DataSourceRequest] DataSourceRequest request, OrderDetail location) { BL.OrderDetails blOrderDetails = new BL.OrderDetails(); OrderDetail model = blOrderDetails.SoftDelete(location); return(Json(new[] { model }.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet)); }
public ActionResult OrderDetailSelectAll([DataSourceRequest] DataSourceRequest request) { BL.OrderDetails blOrderDetails = new BL.OrderDetails(); List <OrderDetail> model = blOrderDetails.SelectAll(); return(Json(model.ToDataSourceResult(request), JsonRequestBehavior.AllowGet)); }