/// <summary>
        /// 更新喷漆打折配置
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public ActionResult UpdatePaintConfig(PaintDiscountConfigModel model)
        {
            if (model == null || string.IsNullOrWhiteSpace(model.ServicePid) || model.SurfaceCount < 1)
            {
                return(Json(new { Status = false, Msg = "未知的编辑对象" }, JsonRequestBehavior.AllowGet));
            }
            if (!(model.ActivityPrice > 0))
            {
                return(Json(new { Status = false, Msg = "活动价格须大于0" }, JsonRequestBehavior.AllowGet));
            }
            if (string.IsNullOrWhiteSpace(model.ActivityName))
            {
                return(Json(new { Status = false, Msg = "权益名称不能为空" }, JsonRequestBehavior.AllowGet));
            }
            if (string.IsNullOrWhiteSpace(model.ActivityImage))
            {
                return(Json(new { Status = false, Msg = "活动图片不能为空" }, JsonRequestBehavior.AllowGet));
            }
            var manager = new PaintDiscountConfigManager();
            var isExist = manager.IsExistPaintDiscountConfig(model);

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

            return(Json(new { Status = result, Msg = $"编辑{(result ? "成功" : "失败")}" }, JsonRequestBehavior.AllowGet));
        }