Ejemplo n.º 1
0
        private void IncludeElectedOfficials(string domainCode)
        {
            // We currently omit county and local.
            if (domainCode == "US")
            {
                foreach (var report in _UxCodes)
                {
                    AddOfficialsPages(report);
                }
            }
            else
            {
                AddOfficialsPages(domainCode);
            }

            // Add the officials. USPresident has blank state code, so is retrieved for all states, but
            // only included if it matched the state.
            foreach (var politicianKey in OfficesOfficials.GetIncumbentsByState(domainCode))
            {
                AddIntroPages(politicianKey);
            }
        }