public ActionResult OrderStatuCreate([DataSourceRequest] DataSourceRequest request, OrderStatu orderstatu) { BL.OrderStatus blOrderStatus = new BL.OrderStatus(); OrderStatu model = blOrderStatus.Insert(orderstatu); return(Json(new[] { model }.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet)); }
public ActionResult OrderStatuSelectAll([DataSourceRequest] DataSourceRequest request) { BL.OrderStatus blOrderStatus = new BL.OrderStatus(); List <OrderStatu> model = blOrderStatus.SelectAll(); return(Json(model.ToDataSourceResult(request), JsonRequestBehavior.AllowGet)); }