public TeacherTutorialEntity(DataAccessLogic.tblTeacherTutorial teacherTutorial)
        {
            this.ID           = teacherTutorial.ID;
            this.AcademicYear = teacherTutorial.AcademicYear;

            this.Teacher = new TeacherEntity(teacherTutorial.tblTeacher);

            this.CreatedBy   = teacherTutorial.CreatedBy;
            this.CreatedDate = teacherTutorial.CreatedDate;
            this.UpdatedBy   = teacherTutorial.UpdatedBy;
            this.UpdatedDate = teacherTutorial.UpdatedDate;
        }
        public T MapToModel <T>() where T : class
        {
            DataAccessLogic.tblTeacherTutorial teacherTutorial = new DataAccessLogic.tblTeacherTutorial();
            teacherTutorial.ID           = this.ID;
            teacherTutorial.AcademicYear = this.AcademicYear;

            teacherTutorial.TeacherID = this.Teacher.ID;

            teacherTutorial.CreatedBy   = this.CreatedBy;
            teacherTutorial.CreatedDate = this.CreatedDate;
            teacherTutorial.UpdatedBy   = this.UpdatedBy;
            teacherTutorial.UpdatedDate = this.UpdatedDate;

            return(teacherTutorial as T);
        }