Beispiel #1
0
 public void AddTeacherToClass(Teacher teacher)
 {
     if(!Hosts.Contains(teacher))
     {
         Hosts.Add(teacher);
     }
 }
Beispiel #2
0
 public void RemoveTeacher(Teacher teacher)
 {
     if (Hosts.Contains(teacher))
     {
         Hosts.Remove(teacher);
     }
 }