Exemple #1
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));
        }
Exemple #2
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));
        }
Exemple #3
0
 public POOrderDetail Insert(POOrderDetail pO)
 {
     return(repository.Insert <POOrderDetail>(pO));
 }
Exemple #4
0
        public POOrderDetail SoftDeleteByID(int pOID)
        {
            POOrderDetail pO = SelectByID(pOID);

            return(repository.Update <POOrderDetail>(pO));
        }
Exemple #5
0
 public POOrderDetail Update(POOrderDetail pO)
 {
     return(repository.Update <POOrderDetail>(pO));
 }