예제 #1
0
        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);
            }
        }
예제 #2
0
 public GiftedTalentedModel(GiftedTalented model) : base(model)
 {
     LoadFromModel(model);
 }