source: bus-n-go-pavel-216049/bus-n-go-backend/src/main/kotlin/mk/ukim/finki/busngobackend/service/LineService.kt

Last change on this file was baf4cc4, checked in by ppaunovski <paunovskipavel@…>, 3 months ago

split group project and individual project into two separate folders

  • Property mode set to 100644
File size: 474 bytes
Line 
1package mk.ukim.finki.busngobackend.service
2
3import mk.ukim.finki.busngobackend.domain.entities.Linija
4import mk.ukim.finki.busngobackend.mapper.ClassToDtoMapper
5import mk.ukim.finki.busngobackend.repository.LinijaRepository
6import org.springframework.stereotype.Service
7
8@Service
9class LineService(
10 private val linijaRepository: LinijaRepository,
11 private val dtoMapper: ClassToDtoMapper,
12) {
13 fun findAllLines(): List<Linija> = this.linijaRepository.findAll()
14}
Note: See TracBrowser for help on using the repository browser.