/// <summary>
        /// 新增价格体系配置
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public ActionResult AddPackageConfig(PaintDiscountPackageModel model)
        {
            if (model == null)
            {
                return(Json(new { Status = false, Msg = "未知的添加对象" }, JsonRequestBehavior.AllowGet));
            }
            else if (string.IsNullOrWhiteSpace(model.PackageName))
            {
                return(Json(new { Status = false, Msg = "活动名称不能为空" }, JsonRequestBehavior.AllowGet));
            }
            else if (!Enum.IsDefined(typeof(UserType), model.UserType))
            {
                return(Json(new { Status = false, Msg = "未定义的用户类型" }, JsonRequestBehavior.AllowGet));
            }
            var manager = new PaintDiscountConfigManager();
            var isExist = manager.IsExistPaintDiscountPackage(model);

            if (isExist)
            {
                return(Json(new { Status = false, Msg = "活动已存在,不能重复编辑" }, JsonRequestBehavior.AllowGet));
            }
            var user   = User.Identity.Name;
            var result = manager.AddPaintDiscountPackage(model, user);

            return(Json(new { Status = result > 0, Msg = $"添加{(result > 0 ? "成功" : "失败")}", PackageId = result }
                        , JsonRequestBehavior.AllowGet));
        }