public string[] GetAllZipCodesByStateID(string stateid) { OtherDAL otherDal = new OtherDAL(); EZip[] objZip = otherDal.GetSimilarZipCode(stateid, 1).ToArray(); List <string> items = new List <string>(objZip.Length); foreach (EZip objEZip in objZip) { items.Add(objEZip.ZipCode); } return(items.ToArray()); }
public List <string> GetZipCodeByPrefixText(string prefixText) { var otherDal = new OtherDAL(); return(otherDal.GetSimilarZipCode(prefixText, 0).Select <EZip, string>(eZip => eZip.ZipCode).ToList <string>()); }