From e17a19eba7fd85700b6ee654dda737ec8ef84c03 Mon Sep 17 00:00:00 2001 From: Jon Sundin Date: Tue, 30 Jan 2024 01:50:54 +0000 Subject: [PATCH] delete message by id service method --- src/main/java/Service/MessageService.java | 4 ++++ 1 file changed, 4 insertions(+) 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); + } }