Exemplo n.º 1
0
 public bool ScheduleLessonPractiseToPractitionerInCourse(Practitioner prac, Course c, Lesson les)
 {
     if (SettingDatabase.PractitionerHasMoreThenAllowsHours(prac, les))
     {
         MessageBox.Show("Can't register any more lessons to this Practitioner, because he above more then 16 weekly hours teaching");
         return(false);
     }
     return(SettingDatabase.AddPractiseInCourseToPractitioner(prac, c, les));
 }