Last change
on this file was 53765dd, checked in by gjoko kostadinov <gjokokostadinov@…>, 10 months ago |
Fix bugs.
|
-
Property mode
set to
100755
|
File size:
859 bytes
|
Line | |
---|
1 | package edu.gjoko.schedlr.services;
|
---|
2 |
|
---|
3 | import edu.gjoko.schedlr.entity.BusinessType;
|
---|
4 | import edu.gjoko.schedlr.entity.ServiceType;
|
---|
5 | import edu.gjoko.schedlr.repositories.BusinessTypeRepository;
|
---|
6 | import edu.gjoko.schedlr.repositories.ServiceTypeRepository;
|
---|
7 | import lombok.AllArgsConstructor;
|
---|
8 | import org.springframework.stereotype.Service;
|
---|
9 |
|
---|
10 | import java.util.List;
|
---|
11 |
|
---|
12 | @Service
|
---|
13 | @AllArgsConstructor
|
---|
14 | public class NomenclaturesService {
|
---|
15 |
|
---|
16 | private final BusinessTypeRepository businessTypeRepository;
|
---|
17 |
|
---|
18 | private final ServiceTypeRepository serviceTypeRepository;
|
---|
19 |
|
---|
20 | public List<BusinessType> getBusinessTypes () {
|
---|
21 | return businessTypeRepository.findAll();
|
---|
22 | }
|
---|
23 |
|
---|
24 | public List<ServiceType> findAppropriateBusinessTypesForBusinessByOwnerId(Long ownerId) {
|
---|
25 | return serviceTypeRepository.findAppropriateBusinessTypesForBusinessByOwnerId(ownerId);
|
---|
26 | }
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.