private static void UpdateTelephoneContact(Employee employee, eTelephoneContactType contactDetailType, SearchResult searchResult, string field,
     string displayName)
 {
     if (searchResult.Properties[field].Count > 0)
     {
         TelephoneContact officeContact =
             (TelephoneContact)
                 employee.ContactCard.FirstOrDefault(
                     tc =>
                         tc.ContactDetailType == eContactDetailType.ContactNumber &&
                         tc.DisplayName.Equals(displayName));
         if (officeContact == null)
         {
             officeContact = new TelephoneContact()
             {
                 DisplayName = displayName,
                 TelephoneType = contactDetailType
             };
             employee.ContactCard.Add(officeContact);
         }
         officeContact.SetNumber(searchResult.Properties[field][0].ToString());
     }
 }
 public TelephoneContact()
 {
     this.TelephoneType = eTelephoneContactType.Office;
 }