Beispiel #1
0
        public void SetPageSetting(string key, PageSetting pageSetting)
        {
            var pageSettings = _configRoot.GetSection("pages").GetChildren().FirstOrDefault(x => x.Key == key);
            var title = pageSettings.GetChildren().FirstOrDefault(x => x.Key == "title");
            var url = pageSettings.GetChildren().FirstOrDefault(x => x.Key == "url");

            title.Value = pageSetting.Title;
            url.Value = pageSetting.Url;
        }