/// <summary> /// Gets the available appointments /// </summary> /// <param name="searchDate">Search date for appointment</param> /// <returns>Returns the list of available appointments</returns> public static List <Appointment> GetAvailableAppointments(DateTime searchDate) { var appointments = new List <Appointment>(); List <string> res = BotService.GetAvailableSlots(searchDate.ToString("yyyy-MM-dd")); foreach (string elem in res) { DateTime date = DateTime.Parse(elem); appointments.Add(new Appointment() { Date = date, PatientName = "Guest", Id = "01" }); } return(appointments); }