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