public ActionResult DeleteMeasurement(int id) { if (ModelState.IsValid) { SupplierBLL objSupplierBLL = new SupplierBLL(); objSupplierBLL.DeleteSupplier(id); } return(RedirectToAction("Index", "Supplier")); }
public dynamic DeleteSupplier() { int id = Fun.Form("id", 0); SupplierBLL bll = new SupplierBLL(); if (!bll.DeleteSupplier(id)) { return("失败"); } else { return("成功"); } }
public JsonResult DeleteSupplier(int id) { var result = supplierBLL.DeleteSupplier(id); return(Json(result)); }