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)); }
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)); }
public POOrderDetail Insert(POOrderDetail pO) { return(repository.Insert <POOrderDetail>(pO)); }
public POOrderDetail SoftDeleteByID(int pOID) { POOrderDetail pO = SelectByID(pOID); return(repository.Update <POOrderDetail>(pO)); }
public POOrderDetail Update(POOrderDetail pO) { return(repository.Update <POOrderDetail>(pO)); }