public List<Associate.PhoneType> GetPhoneType() { using (AssociateConnDataContext asscon = new AssociateConnDataContext()) { var types = (from a in asscon.Get_PhoneType() select new Associate.PhoneType() { PhoneTypeID = Convert.ToInt32(a.PhoneTypeID), PhoneTypeDesc = a.PhoneType }).ToList<Associate.PhoneType>(); return types; } }