public ActionResult DeletePaintConfig(PaintDiscountConfigModel model) { if (string.IsNullOrWhiteSpace(model.ServicePid) || model.SurfaceCount < 1) { return(Json(new { Status = false, Msg = "未知的删除对象" }, JsonRequestBehavior.AllowGet)); } var manager = new PaintDiscountConfigManager(); var user = User.Identity.Name; var result = manager.DeletePaintDiscountConfig(model.PackageId, model.ServicePid, model.SurfaceCount, user); return(Json(new { Status = result, Msg = $"删除{(result ? "成功" : "失败")}" }, JsonRequestBehavior.AllowGet)); }