Exemplo n.º 1
0
        public static IEnumerable <ZipCountyView> GetZipCodesAndCountyFIPSForState(string StateFIPS)
        {
            List <ZipCountyView> ZipCodesAndCounties = new List <ZipCountyView>();

            System.Data.IDataReader reader = LookupDAL.GetZipCodeForStateFips(StateFIPS);
            //string CountyFIPS = string.Empty;
            while (reader.Read())
            {
                ZipCodesAndCounties.Add(new ZipCountyView(reader.GetString(0), reader.GetString(1), reader.GetString(2)));
            }
            return(ZipCodesAndCounties);
        }