private void InitializeSettings() { var siteSettingsRepository = new AdminSiteSettingsRepository(@"C:\QAConfig\AdminSiteSettings.json"); siteSettingsRepository.Load(); _container.RegisterInstance(siteSettingsRepository); }
public AdminSiteSettings Get() { try { var settings = _settingsRepository.Load(); return(settings); } catch (Exception exc) { Logger.Error(exc, "Error while getting settings."); return(null); } }