Example #1
0
        private void LoadFromModel(ExamSeries model)
        {
            ExamBoardId  = model.ExamBoardId;
            ExamSeasonId = model.ExamSeasonId;
            SeriesCode   = model.SeriesCode;
            Code         = model.Code;
            Title        = model.Title;

            if (model.Season != null)
            {
                Season = new ExamSeasonModel(model.Season);
            }

            if (model.ExamBoard != null)
            {
                ExamBoard = new ExamBoardModel(model.ExamBoard);
            }
        }
Example #2
0
 public ExamSeriesModel(ExamSeries model) : base(model)
 {
     LoadFromModel(model);
 }