source: src/main/java/it/finki/charitable/services/ReasonService.java@ 0c37625

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 
1package it.finki.charitable.services;
2
3import it.finki.charitable.entities.Reason;
4import it.finki.charitable.repository.ReasonRepository;
5import org.springframework.stereotype.Service;
6
7@Service
8public 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.