source: src/main/java/project/educatum/service/impl/AdminServiceImpl.java

Last change on this file was d3cf3a1, checked in by Marija Micevska <marija_micevska@…>, 2 years ago

Initial commit

  • Property mode set to 100644
File size: 685 bytes
Line 
1package project.educatum.service.impl;
2
3import org.springframework.stereotype.Service;
4import project.educatum.model.Admin;
5import project.educatum.repository.AdminRepository;
6import project.educatum.service.AdminService;
7
8import java.util.List;
9
10@Service
11public class AdminServiceImpl implements AdminService {
12
13 private final AdminRepository adminRepository;
14
15 public AdminServiceImpl(AdminRepository adminRepository) {
16 this.adminRepository = adminRepository;
17 }
18
19 @Override
20 public List<Admin> findAll() {
21 return adminRepository.findAll();
22 }
23
24 @Override
25 public List<Admin> listAll() {
26 return this.adminRepository.findAll();
27 }
28}
Note: See TracBrowser for help on using the repository browser.