Exemple #1
0
 public ActionResult DeleteMeasurement(int id)
 {
     if (ModelState.IsValid)
     {
         SupplierBLL objSupplierBLL = new SupplierBLL();
         objSupplierBLL.DeleteSupplier(id);
     }
     return(RedirectToAction("Index", "Supplier"));
 }
Exemple #2
0
        public dynamic DeleteSupplier()
        {
            int         id  = Fun.Form("id", 0);
            SupplierBLL bll = new SupplierBLL();

            if (!bll.DeleteSupplier(id))
            {
                return("失败");
            }
            else
            {
                return("成功");
            }
        }
Exemple #3
0
        public JsonResult DeleteSupplier(int id)
        {
            var result = supplierBLL.DeleteSupplier(id);

            return(Json(result));
        }