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