Last change
on this file since 0c37625 was ab49338, checked in by KostaFortumanov <kfortumanov@…>, 3 years ago |
Dodadeno prijavuvanje na objavi
|
-
Property mode
set to
100644
|
File size:
572 bytes
|
Line | |
---|
1 | package it.finki.charitable.services;
|
---|
2 |
|
---|
3 | import it.finki.charitable.entities.Reason;
|
---|
4 | import it.finki.charitable.repository.ReasonRepository;
|
---|
5 | import org.springframework.stereotype.Service;
|
---|
6 |
|
---|
7 | @Service
|
---|
8 | public class ReasonService {
|
---|
9 |
|
---|
10 | private final ReasonRepository reasonRepository;
|
---|
11 |
|
---|
12 | public ReasonService(ReasonRepository reasonRepository) {
|
---|
13 | this.reasonRepository = reasonRepository;
|
---|
14 | }
|
---|
15 |
|
---|
16 | public void save(Reason reason) {
|
---|
17 | reasonRepository.save(reason);
|
---|
18 | }
|
---|
19 |
|
---|
20 | public void delete(Reason reason) {
|
---|
21 | reasonRepository.delete(reason);
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.