public async Task AddContact(MyContact myContact)
        {
            // acquire a O365 client to retrieve contacts
            var client = await EnsureClientCreated();

            // create new contact record
            var newContact = new Microsoft.Office365.OutlookServices.Contact {
                GivenName   = myContact.GivenName,
                Surname     = myContact.Surname,
                CompanyName = myContact.CompanyName
            };

            // add email address
            newContact.EmailAddresses.Add(new EmailAddress()
            {
                Address = myContact.EmailAddress,
                Name    = myContact.EmailAddress
            });

            // add phone numbers to collections
            newContact.HomePhones.Add(myContact.HomePhone);
            newContact.BusinessPhones.Add(myContact.BusinessPhone);

            // create the contact in O365
            await client.Me.Contacts.AddContactAsync(newContact);
        }
    public async Task AddContact(MyContact myContact) {
      // acquire a O365 client to retrieve contacts
      var client = await EnsureClientCreated();

      // create new contact record
      var newContact = new Microsoft.Office365.OutlookServices.Contact {
        GivenName = myContact.GivenName,
        Surname = myContact.Surname,
        CompanyName = myContact.CompanyName
      };

      // add email address
      newContact.EmailAddresses.Add(new EmailAddress() {
        Address = myContact.EmailAddress,
        Name = myContact.EmailAddress
      });

      // add phone numbers to collections
      newContact.HomePhones.Add(myContact.HomePhone);
      newContact.BusinessPhones.Add(myContact.BusinessPhone);

      // create the contact in O365
      await client.Me.Contacts.AddContactAsync(newContact);
    }