/* * Constructor for an existing judge * @param loadPreferences should be true if the judge's preferences need to be * loaded from the database and false otherwise */ public Judge(int id, string firstName, string mi, string lastName, string email, string phone, int districtId, string contactTypeId, List <JudgePreference> preferences, bool loadPreferences) : base(id, firstName, mi, lastName, email, phone, districtId, contactTypeId) { if (!loadPreferences) { this.preferences = preferences; } else { this.preferences = DbInterfaceJudge.GetJudgePreferences(id); } }
/* * Constructor for loading the data of an existing judge */ public Judge(int id) : base(id, true) { preferences = DbInterfaceJudge.GetJudgePreferences(id); }