public ActionResult UpsertBeautyServicePackage(BeautyServicePackage package)
        {
            bool isSuccess = false;
            var  msg       = string.Empty;
            var  user      = HttpContext.User.Identity.Name;

            if (package != null && !string.IsNullOrEmpty(package.PackageName) && package.CooperateId > 0)
            {
                var manager       = new BankMRManager();
                var cooperateUser = manager.FetchMrCooperateUserConfigByPKID(package.CooperateId);
                if (cooperateUser != null)
                {
                    package.VipUserId = cooperateUser.VipUserId;
                    using (var client = new UserAccountClient())
                    {
                        var userServiceResult = client.SelectCompanyUserInfo(cooperateUser.VipUserId);
                        if (userServiceResult.Success && userServiceResult.Result != null)
                        {
                            package.VipUserName = userServiceResult.Result.UserName;
                            if (userServiceResult.Result.CompanyInfo != null)
                            {
                                package.VipCompanyId   = userServiceResult.Result.CompanyInfo.Id;
                                package.VipCompanyName = userServiceResult.Result.CompanyInfo.Name;
                            }
                        }
                    }
                }

                if (package.PKID > 0)
                {
                    package.UpdateUser = user;
                    isSuccess          = BeautyServicePackageManager.UpdateBeautyServicePackage(package);
                }
                else
                {
                    package.CreateUser = user;
                    isSuccess          = BeautyServicePackageManager.InsertBeautyServicePackage(package);
                }
                if (!isSuccess)
                {
                    msg = "更新失败";
                }
                else
                {
                    msg = "成功";
                }
            }
            else
            {
                msg = "信息不完善";
            }

            return(Json(new { IsSuccess = isSuccess, Msg = msg }, JsonRequestBehavior.AllowGet));
        }