public ActionResult SiteSettings()
        {
            pageResourceManager.InsertTitlePart("基础设置");
            SiteSettings siteSettings = siteSettingsManager.Get();
            CommentSettings commentSettings = commentSettingsManager.Get();

            SiteSettingsEditModel siteSettingsEditModel = new SiteSettingsEditModel(siteSettings, commentSettings);

            //读取分享到其他网站目录
            string systemPath = WebUtility.GetPhysicalFilePath(WebUtility.ResolveUrl("~/Plugins/ShareToThird/"));
            DirectoryInfo dir = new DirectoryInfo(systemPath);
            FileInfo[] finfo = dir.GetFiles();
            List<SelectListItem> selectListItems = new List<SelectListItem>();
            SelectListItem itemclose = new SelectListItem();
            itemclose.Text = "关闭";
            itemclose.Value = "";
            selectListItems.Add(itemclose);

            for (int i = 0; i < finfo.Length; i++)
            {
                SelectListItem item = new SelectListItem();
                item.Text = finfo[i].Name.Split('.')[0];
                item.Value = finfo[i].Name.Split('.')[0];
                selectListItems.Add(item);
            }
            SelectList selectListBusiness = new SelectList(selectListItems, "Value", "Text", siteSettingsEditModel.ShareToThirdBusiness);
            ViewData["selectListBusiness"] = selectListBusiness;

            return View(siteSettingsEditModel);
        }
        public JsonResult SaveSiteSettings(SiteSettingsEditModel siteSettingsEditModel)
        {
            if (siteSettingsEditModel.ShareToThirdBusiness == null || siteSettingsEditModel.ShareToThirdBusiness == "")
                siteSettingsEditModel.ShareToThirdIsEnabled = false;
            else
                siteSettingsEditModel.ShareToThirdIsEnabled = true;

            SiteSettings siteSettings = siteSettingsEditModel.AsSiteSettings();
            CommentSettings commentSettings = siteSettingsEditModel.AsCommentSettings();

            siteSettingsManager.Save(siteSettings);
            commentSettingsManager.Save(commentSettings);

            return Json(new StatusMessageData(StatusMessageType.Success, "设置成功!"));
        }