Ejemplo n.º 1
0
        public LecturerModel(Lecturer lecturer)
        {
            if (lecturer == null)
            {
                return;
            }
            LecturerId  = lecturer.LecturerId;
            CollegeId   = lecturer.CollegeId;
            ProgrammeId = lecturer.ProgrammeId;
            FirstName   = lecturer.FirstName;
            MiddleName  = lecturer.MiddleName;
            LastName    = lecturer.LastName;
            Title       = lecturer.Title;
            StaffNo     = lecturer.StaffNo;
            Email       = lecturer.Email;
            Gender      = lecturer.Gender;

            Programme = new ProgrammeModel();
            College   = new CollegeModel();
            Courses   = new HashSet <CourseModel>();
        }
Ejemplo n.º 2
0
        public StudentModel(Student student)
        {
            if (student == null)
            {
                return;
            }
            StudentId   = student.StudentId;
            FirstName   = student.FirstName;
            MiddleName  = student.MiddleName;
            LastName    = student.LastName;
            MatricNo    = student.MatricNo;
            Email       = student.Email;
            Phone       = student.Phone;
            Gender      = student.Gender;
            ProgrammeId = student.ProgrammeId;
            CollegeId   = student.CollegeId;
            LevelId     = student.LevelId;

            Programme = new ProgrammeModel();
            College   = new CollegeModel();
            Level     = new LevelModel();
        }
Ejemplo n.º 3
0
 public LecturerModel()
 {
     Courses   = new HashSet <CourseModel>();
     Programme = new ProgrammeModel();
     College   = new CollegeModel();
 }