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
|
Rev | Line | |
---|
[d3cf3a1] | 1 | package project.educatum.service.impl;
|
---|
| 2 |
|
---|
| 3 | import org.springframework.stereotype.Service;
|
---|
| 4 | import project.educatum.model.Admin;
|
---|
| 5 | import project.educatum.repository.AdminRepository;
|
---|
| 6 | import project.educatum.service.AdminService;
|
---|
| 7 |
|
---|
| 8 | import java.util.List;
|
---|
| 9 |
|
---|
| 10 | @Service
|
---|
| 11 | public 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.