public IList<Course> GetMyCourse(int teacherId) { ICourseDao courseDao = new CourseDao(sessionFactory); IList<Course> teacherCourseList = courseDao.GetMyCourse(teacherId); return teacherCourseList; }