public List <CourseEntity> GetCourseList() { using (CourseLogic logic = new CourseLogic()) { return(logic.GetCourseList()); } }