예제 #1
0
 public int SaveChanges()
 {
     foreach (var schedule in Schedules.Cast <IValidate>())
     {
         schedule.Validate(ChangeAction.Insert);
     }
     foreach (var reservation in Reservations.Cast <IValidate>())
     {
         reservation.Validate(ChangeAction.Insert);
     }
     return(1);
 }