public bool RemoveMember(Teachers teachers) { bRemoved = false; foreach (Teachers element in teachersMemberList) { if (teachersMemberList[i] == teachers) { teachersMemberList.RemoveAt(i); bRemoved = true; return(true); } i++; } if (!bRemoved) { Console.WriteLine("Student not in team"); return(false); } else { return(true); } }
public void AddTeacher(string name) { var teacher = new Teachers(name); teachersList.Add(teacher); }
public void MakeMember(Teachers teachers) { teachersMemberList.Add(teachers); }