private void LoadFromModel(GiftedTalented model) { StudentId = model.StudentId; SubjectId = model.SubjectId; Notes = model.Notes; if (model.Student != null) { Student = new StudentModel(model.Student); } if (model.Subject != null) { Subject = new SubjectModel(model.Subject); } }
public GiftedTalentedModel(GiftedTalented model) : base(model) { LoadFromModel(model); }