public bool IsAvailable(LocalDate date) { if (date.ToYearMonth() != Month) { return(false); } return(Appointments.First(a => a.Date == date).AvailableSlots.Any(s => s.RemainingSlots > 0)); }
public static Appointment GetAppointment(Guid AppointmentID) { return(Appointments.First <Appointment>(x => x.AppointmentID.Equals(AppointmentID))); }
public Appointment getAppointmentById(string id) { return(Appointments.First(a => a.AppointmentID == new Guid(id))); }