You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
585 B
25 lines
585 B
package service.impl;
|
|
|
|
import dao.CourseDao;
|
|
import dao.impl.CourseDaoImpl;
|
|
import domain.Course;
|
|
import service.CourseService;
|
|
|
|
public class CourseServiceImpl implements CourseService {
|
|
private CourseDao dao = new CourseDaoImpl();
|
|
@Override
|
|
public void addOptionalCourse(Course course) {
|
|
dao.addOptionalCourse(course);
|
|
}
|
|
|
|
@Override
|
|
public Course findSelectCourseByCourseId(String cid) {
|
|
return dao.findSelectCourseByCourseId(cid);
|
|
}
|
|
|
|
@Override
|
|
public void deleteServiceById(String cid) {
|
|
dao.deleteServiceById(cid);
|
|
}
|
|
}
|