Exemplo n.º 1
0
        private void LoadFromModel(CoverArrangement model)
        {
            WeekId    = model.WeekId;
            SessionId = model.SessionId;
            TeacherId = model.TeacherId;
            RoomId    = model.RoomId;
            Comments  = model.Comments;

            if (model.Week != null)
            {
                Week = new AttendanceWeekModel(model.Week);
            }

            if (model.Session != null)
            {
                Session = new SessionModel(model.Session);
            }

            if (model.Teacher != null)
            {
                Teacher = new StaffMemberModel(model.Teacher);
            }

            if (model.Room != null)
            {
                Room = new RoomModel(model.Room);
            }
        }
Exemplo n.º 2
0
 public CoverArrangementModel(CoverArrangement model) : base(model)
 {
     LoadFromModel(model);
 }