/// <summary>
        /// 更新或者新增礼包配置
        /// </summary>
        /// <param name="config"></param>
        /// <returns></returns>
        public ActionResult AddOrUpdateGiftPackConfig(VipBaoYangGiftPackConfig config)
        {
            if (config == null || string.IsNullOrWhiteSpace(config.PackName) || config.PackageId < 0)
            {
                return(Json(new { status = false, msg = "礼包名称、套餐不能为空" }));
            }
            config.PackName = config.PackName.Trim();
            var manager = new VipBaoYangPackageManager();

            if (manager.IsExisitsVipBaoYangGiftPackName(config))
            {
                return(Json(new { status = false, msg = "礼包名称已存在" }));
            }
            var result = config.PackId <= 0 ?
                         manager.AddVipBaoYangGiftPackConfig(config, User.Identity.Name) :
                         manager.EditVipBaoYangGiftPackConfig(config);

            return(Json(new { status = result }, JsonRequestBehavior.AllowGet));
        }