public static List <CalendarSlot> GetSlotsByPeriod(int calendarId, string dayPeriod, string userId) { List <CalendarSlot> listCalendars = new List <CalendarSlot>(); bool appoinmentsOnly = false; string typeSerializer = "XML"; WebAppoinmentsClientLibrary.Calendars calendars = new WebAppoinmentsClientLibrary.Calendars(); listCalendars = calendars.GetSlotsByPeriod(calendarId, dayPeriod, userId); return(listCalendars); }