private static IEnumerable<IContactAssociation> GetOrganizations(Contact contact)
 {
     if (!string.IsNullOrWhiteSpace(contact.Headline))
     {
         var idx = contact.Headline.IndexOf(" at ", StringComparison.Ordinal);
         if (idx > 1)
         {
             var role = contact.Headline.Substring(0, idx);
             var org = contact.Headline.Substring(idx + 4);
             var ass = new ContactAssociation(role, org);
             return new[] { ass };
         }
     }
     return Enumerable.Empty<IContactAssociation>();
 }
        private static IAccountContactSummary TranslateToContactSummary(string accountId, Contact c)
        {
            var organizations = GetOrganizations(c);

            return new ContactSummary(accountId, c.Id, c.FirstName, c.LastName, c.PictureUrl, new[] { c.Industry }, organizations);
        }