コード例 #1
0
 public List <Appointment> GetAppointmentsByMonth(int month)
 {
     return(TestDatabase.GetAppointments().Where(a => a.StartDate.Month == month || a.EndDate.Month == month).ToList());
 }
コード例 #2
0
 public Appointment GetAppointment(int Id)
 {
     return(TestDatabase.GetAppointments().Where(a => a.AppointmentId == Id).FirstOrDefault());
 }