private void LoadFromModel(ExamElementComponent model)
        {
            ElementId   = model.ElementId;
            ComponentId = model.ComponentId;

            if (model.Element != null)
            {
                Element = new ExamElementModel(model.Element);
            }

            if (model.Component != null)
            {
                Component = new ExamComponentModel(model.Component);
            }
        }
Example #2
0
        private void LoadFromModel(ExamComponentSitting model)
        {
            ComponentId      = model.ComponentId;
            ExamRoomId       = model.ExamRoomId;
            ExamDate         = model.ExamDate;
            ActualStartTime  = model.ActualStartTime;
            ExtraTimePercent = model.ExtraTimePercent;

            if (model.Component != null)
            {
                Component = new ExamComponentModel(model.Component);
            }

            if (model.Room != null)
            {
                Room = new ExamRoomModel(model.Room);
            }
        }