Exemple #1
0
        public BlogSettingsViewModel()
        {
            BookmarkTitle = "Blog Settings";
            Settings      = Context.BlogSettings.FirstOrDefault();

            // Set some initial values if none are found.
            if (Settings == null)
            {
                SettingsUtils.SetDefaultBlogSettings();
                Settings = Context.BlogSettings.FirstOrDefault();
            }
        }