Пример #1
0
        public void AddContact()
        {
            var personDto = new PersonDto
            {
                FirstName    = "Test",
                LastName     = "User",
                PhoneNumber  = "111 222 333",
                EmailAddress = "*****@*****.**"
            };
            var person = apiService.AddPerson(personDto);

            Console.Write(person.Names != null ? person.Names[0].DisplayName + "  " : "n/a  ");
            Console.Write(person.EmailAddresses.FirstOrDefault()?.Value ?? "n/a" + "  ");
            Console.WriteLine(person.PhoneNumbers?.FirstOrDefault()?.Value ?? "n/a");
        }