diff --git a/buisnesslogic/src/main/java/com/plannaplan/services/CourseService.java b/buisnesslogic/src/main/java/com/plannaplan/services/CourseService.java index 446faea..755e801 100644 --- a/buisnesslogic/src/main/java/com/plannaplan/services/CourseService.java +++ b/buisnesslogic/src/main/java/com/plannaplan/services/CourseService.java @@ -25,6 +25,10 @@ public class CourseService { this.repo.save(course); } + public void remove(Course course){ + this.repo.delete(course); + } + public int getCoursesAmmount(){ return (int)this.repo.count(); }