Skip to content

Commit

Permalink
delete message by id service method
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsundin committed Jan 30, 2024
1 parent 9348b4f commit e17a19e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/Service/MessageService.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,9 @@ public List<Message> getAllMessages() {
public Message getMessageById(int message_id) {
return messageDAO.getMessageById(message_id);
}

public Message deleteMessageById(int message_id) {
return messageDAO.deleteMessageById(message_id);
}

}

0 comments on commit e17a19e

Please sign in to comment.