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); } }
public ParentEveningAppointmentModel(ParentEveningAppointment model) : base(model) { LoadFromModel(model); }