private Dean GetDeanByFacultyID(int facultyID) { Dean dean = null; foreach (var d in from DBODean d in GetDBODeans() where d.GetFacultyID().Equals(facultyID) select d) { dean = new Dean(d.Firstname, d.Lastname, d.YearOfBirth, d.Degree); break; } return(dean); }
public Faculty(string nm, Address dA, Dean dean, List <Student> students) : base(nm, dA) { Dean = dean; StudentsList = students; }