private void LoadFromModel(ExamSeatAllocation model) { SittingId = model.SittingId; SeatRow = model.SeatRow; SeatColumn = model.SeatColumn; CandidateId = model.CandidateId; Active = model.Active; Attended = model.Attended; if (model.Sitting != null) { Sitting = new ExamComponentSittingModel(model.Sitting); } if (model.Candidate != null) { Candidate = new ExamCandidateModel(model.Candidate); } }
public ExamSeatAllocationModel(ExamSeatAllocation model) : base(model) { LoadFromModel(model); }