public bool RemoveStudent(StudentProfesor stud) { if (FindStudent(stud)) { student.Remove(stud); return true; } else return false; }
public bool FindStudent(StudentProfesor stud) { foreach (var s in student) { if (s.Equals(stud)) { return(true); } } return(false); }
public bool FindStudent(StudentProfesor stud) { foreach (var s in student) { if (s.Equals(stud)) { return true; } } return false; }
public bool RemoveStudent(StudentProfesor stud) { if (FindStudent(stud)) { student.Remove(stud); return(true); } else { return(false); } }
public bool AddStudent(StudentProfesor stud) { if (FindStudent(stud)) { return(false); } else { student.Add(stud); return(true); } }
public bool AddStudent(StudentProfesor stud) { if (FindStudent(stud)) { return false; } else { student.Add(stud); return true; } }