Example #1
0
        public static FipsSubCountyEntry GetSubCounty(string subCountyCode)
        {
            if (!string.IsNullOrEmpty(subCountyCode))
            {
                if (subCountyCode.ToUpper() == "N")
                {
                    return(NotApplicableSubCounty());
                }

                return(FipsSubCodes.FirstOrDefault(s => s.SubCountyCode == subCountyCode)
                       ?? UnknownSubCounty(subCountyCode));
            }

            return(UnknownSubCounty("Unspecified"));
        }