From 283be6603d46c5f5fbdbfc476cfc15a6f2ccc50f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Wed, 16 Sep 2020 17:15:56 +0200 Subject: [PATCH] Dodanie usuniecie kursu. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .../src/main/java/com/plannaplan/services/CourseService.java | 4 ++++ 1 file changed, 4 insertions(+) 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(); }