Ejemplo n.º 1
0
        /// <summary>
        /// 更新话题配置
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        private string UpdateReviewConfig(HttpContext context)
        {
            string      isEnableUserReleaseReview = context.Request["IsEnableUserReleaseReview"];
            WebsiteInfo currentWebsiteInfo        = bll.GetWebsiteInfoModelFromDataBase();

            currentWebsiteInfo.IsEnableUserReleaseReview = int.Parse(isEnableUserReleaseReview);
            if (bll.Update(currentWebsiteInfo))
            {
                resp.Status = 1;
                resp.Msg    = "操作成功";
            }
            else
            {
                resp.Msg = "操作失败";
            }
            return(Common.JSONHelper.ObjectToJson(resp));
        }