/// <summary> /// 删除价格体系配置 /// </summary> /// <param name="model"></param> /// <returns></returns> public ActionResult DeletePackageConfig(PaintDiscountPackageModel model) { if (model.PKID < 1 || string.IsNullOrWhiteSpace(model.PackageName)) { return(Json(new { Status = false, Msg = "未知的删除对象" }, JsonRequestBehavior.AllowGet)); } var manager = new PaintDiscountConfigManager(); var user = User.Identity.Name; var result = manager.DeletePaintDiscountPackage(model, user); return(Json(new { Status = result, Msg = $"删除{(result ? "成功" : "失败")}" }, JsonRequestBehavior.AllowGet)); }