public SiteNavigationController(string configuration) { var h = (SiteNavigationSectionHandler) ConfigurationManager.GetSection("suprifattus.sitenavigation"); cfg = h.GetConfiguration(configuration); if (cfg == null) { throw new ConfigurationErrorsException("Navigation configuration not found: " + configuration); } }
public SiteNavigationController(string configuration) { var h = (SiteNavigationSectionHandler)ConfigurationManager.GetSection("suprifattus.sitenavigation"); cfg = h.GetConfiguration(configuration); if (cfg == null) { throw new ConfigurationErrorsException("Navigation configuration not found: " + configuration); } }