Example #1
0
        private void LoadFromModel(ParentEveningAppointment model)
        {
            ParentEveningStaffId = model.ParentEveningStaffId;
            StudentId            = model.StudentId;
            Start    = model.Start;
            End      = model.End;
            Attended = model.Attended;

            if (model.ParentEveningStaffMember != null)
            {
                ParentEveningStaffMember = new ParentEveningStaffMemberModel(model.ParentEveningStaffMember);
            }

            if (model.Student != null)
            {
                Student = new StudentModel(model.Student);
            }
        }
Example #2
0
 public ParentEveningAppointmentModel(ParentEveningAppointment model) : base(model)
 {
     LoadFromModel(model);
 }