source: src/main/java/it/finki/charitable/services/EmailMessageService.java@ a64f926

Last change on this file since a64f926 was 881a233, checked in by KostaFortumanov <kfortumanov@…>, 3 years ago

part 1

  • Property mode set to 100644
File size: 782 bytes
Line 
1package it.finki.charitable.services;
2
3import it.finki.charitable.entities.EmailMessage;
4import it.finki.charitable.repository.EmailMessageRepository;
5import org.springframework.stereotype.Service;
6
7import java.util.List;
8
9@Service
10public class EmailMessageService {
11
12 private final EmailMessageRepository emailMessageRepository;
13
14 public EmailMessageService(EmailMessageRepository emailMessageRepository) {
15 this.emailMessageRepository = emailMessageRepository;
16 }
17
18 public List<EmailMessage> findAll() {
19 return emailMessageRepository.findAll();
20 }
21
22 public void save(EmailMessage message) {
23 emailMessageRepository.save(message);
24 }
25
26 public void delete(EmailMessage message) {
27 emailMessageRepository.delete(message);
28 }
29}
Note: See TracBrowser for help on using the repository browser.