Beispiel #1
0
        public ActionResult SectionSettings(SectionSettingsEditModel model)
        {
            ISettingsManager <BarSettings> manager = DIContainer.Resolve <ISettingsManager <BarSettings> >();

            manager.Save(model.AsBarSettings());

            TempData["StatusMessageData"] = new StatusMessageData(StatusMessageType.Success, "保存设置成功");

            return(Redirect(SiteUrls.Instance().SectionSettings()));
        }
        public ActionResult SectionSettings(SectionSettingsEditModel model)
        {
            ISettingsManager<BarSettings> manager = DIContainer.Resolve<ISettingsManager<BarSettings>>();
            manager.Save(model.AsBarSettings());

            TempData["StatusMessageData"] = new StatusMessageData(StatusMessageType.Success, "保存设置成功");

            return Redirect(SiteUrls.Instance().SectionSettings());
        }