public class EventsController : ApiController { private EmailAddress[] emailAddress; private Attendee[] attendees; private Event[] events; public EventsController() { EmailAddress[] emailAddress = new EmailAddress[] { new EmailAddress { Address = "hello@hello.com", Name = "helloname" } }; Attendee[] attendees = new Attendee[] { new Attendee { EmailAddresses = emailAddress , Type = "user"} }; Event[] events = new Event[] { new Event { Id = 1, Subject = "Hello World", Start = DateTime.Parse("2019-07-31 18:00:00"), End = DateTime.Parse("2019-07-31 20:00:00"), Location = "NCS Hub", Attendees = attendees } }; } }