public StudentRecordHandler(BsonDocument document) { if (document != null) { PersonalInformation = new PersonalInformation(document[1].AsString, document[2].AsString, document[3].AsString, document[4].AsString, document[5].AsString, document[6].AsString); BsonDocument subDoc = document[7].AsBsonDocument; AcademicInformation = new StudentAcademicInformation(subDoc[0].AsString, subDoc[1].AsString, subDoc[2].AsString, subDoc[3].AsBsonArray, subDoc[4].AsBsonArray, subDoc[5].AsBsonArray); } else { PersonalInformation = new PersonalInformation(); AcademicInformation = new StudentAcademicInformation(); } InitializeStudentRecord(); }
public StudentRecordHandler() { AcademicInformation = new StudentAcademicInformation(); PersonalInformation = new PersonalInformation(); InitializeStudentRecord(); }