Esempio n. 1
0
        //TODO: This is a quick fix to a problem I was having on CCF/Add refactor asap. JP
        public static IEnumerable <KeyValuePair <string, string> > GetZipCodeForCountyFips2(string CountyFips)
        {
            var _zipCodes = new List <KeyValuePair <string, string> >();

            IDataReader rdrZipCodes = LookupDAL.GetZipCodeForCountyFips(CountyFips);

            while (rdrZipCodes.Read())
            {
                _zipCodes.Add(new KeyValuePair <string, string>(rdrZipCodes.GetInt32(0).ToString(), rdrZipCodes.GetString(1)));
            }
            return(_zipCodes);
        }