public CourseTypeEntity GetCourseTypeByID(int id) { using (CourseLogic logic = new CourseLogic()) { return(logic.GetCourseTypeByID(id)); } }