Ejemplo n.º 1
0
        public void Reload()
        {
            using (var datacontext = new ScribeSqlDatabase())
            {
                SettingsService.ClearCache();

                var settingsService = SiteSettings.Load(datacontext, true);

                MvcApplication.IsConfigured = datacontext.Users.Any();
                MvcApplication.PrintCss     = settingsService.PrintCss;
                MvcApplication.ViewCss      = settingsService.ViewCss;
            }
        }