示例#1
0
        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));
        }
示例#2
0
        public ActionResult OrderStatuSelectAll([DataSourceRequest] DataSourceRequest request)
        {
            BL.OrderStatus    blOrderStatus = new BL.OrderStatus();
            List <OrderStatu> model         = blOrderStatus.SelectAll();

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