Beispiel #1
0
 //Appointment Methods
 static public void GetAllAppointments(HairSpaContext context)
 {
     //Clear appointment list, then add appointment table records to the list.
     AppointmentList.ToList().ForEach(ap => AppointmentList.Remove(ap));
     context.Appointments.ToList().ForEach(ap => AppointmentList.Add(ap));
 }