Пример #1
0
        public static List <EventAttendee> convertPersonToAttendee(IList <string> UUIDS)
        {
            List <EventAttendee> attendees = new List <EventAttendee>();

            foreach (var person in Attendee.IgetAllAttendees())
            {
                foreach (var uuid in UUIDS)
                {
                    if (person.UserDefined[0].Value == uuid)
                    {
                        attendees.Add(new EventAttendee()
                        {
                            Email = person.EmailAddresses[0].Value
                        });
                        Console.WriteLine(person.EmailAddresses[0].Value.ToString());
                    }
                }
            }
            return(attendees);
        }