public ActionResult DeleteBeautyServicePackageDetail(int pkid, int packageId)
        {
            var isSuccess = false;
            var msg       = string.Empty;
            var package   = BeautyServicePackageManager.GetBeautyServicePackage(packageId);

            if (package != null && package.IsPackageCodeGenerated)
            {
                msg = "已经生成兑换码的不允许删除";
            }
            else if (package == null)
            {
                msg = "兑换码配置不存在";
            }
            else
            {
                var packageDetail = BeautyServicePackageManager.GetBeautyServicePackageDetail(pkid);
                if (packageDetail != null && !packageDetail.IsServiceCodeGenerated)
                {
                    var user = HttpContext.User.Identity.Name;
                    isSuccess = BeautyServicePackageManager.DeleteBeautyServicePackageDetail(pkid, packageDetail, user);
                }
                else if (packageDetail == null)
                {
                    msg = "不存在";
                }
                else
                {
                    msg = "已经生成服务码的不允许删除";
                }
            }

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