Exemple #1
0
        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);
            }
        }
Exemple #2
0
 public ExamSeatAllocationModel(ExamSeatAllocation model) : base(model)
 {
     LoadFromModel(model);
 }