diff --git a/src/main/java/Service/MessageService.java b/src/main/java/Service/MessageService.java index 3929fc6..84d0e29 100644 --- a/src/main/java/Service/MessageService.java +++ b/src/main/java/Service/MessageService.java @@ -42,5 +42,9 @@ public List getAllMessages() { public Message getMessageById(int message_id) { return messageDAO.getMessageById(message_id); } + + public Message deleteMessageById(int message_id) { + return messageDAO.deleteMessageById(message_id); + } }