source: src/main/java/edu/gjoko/schedlr/services/NomenclaturesService.java

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 
1package edu.gjoko.schedlr.services;
2
3import edu.gjoko.schedlr.entity.BusinessType;
4import edu.gjoko.schedlr.entity.ServiceType;
5import edu.gjoko.schedlr.repositories.BusinessTypeRepository;
6import edu.gjoko.schedlr.repositories.ServiceTypeRepository;
7import lombok.AllArgsConstructor;
8import org.springframework.stereotype.Service;
9
10import java.util.List;
11
12@Service
13@AllArgsConstructor
14public 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.