Beispiel #1
0
        public ActionResult POOrderCreate([DataSourceRequest] DataSourceRequest request, POOrderDetail po)
        {
            BL.POOrderDetails blVendors = new BL.POOrderDetails();
            POOrderDetail     model     = blVendors.Insert(po);

            return(Json(new[] { model }.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public ActionResult POOrderDestroy([DataSourceRequest] DataSourceRequest request, int po)
        {
            BL.POOrderDetails blVendors = new BL.POOrderDetails();
            POOrderDetail     model     = blVendors.SoftDeleteByID(po);

            return(Json(new[] { model }.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet));
        }
Beispiel #3
0
        public ActionResult POOrderSelectAll([DataSourceRequest] DataSourceRequest request)
        {
            BL.POOrderDetails    blPO  = new BL.POOrderDetails();
            List <POOrderDetail> model = blPO.SelectAll();

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