source: bus-n-go-pavel-216049/bus-n-go-backend/src/main/kotlin/mk/ukim/finki/busngobackend/service/BusService.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: 432 bytes
Line 
1package mk.ukim.finki.busngobackend.service
2
3import mk.ukim.finki.busngobackend.domain.entities.Avtobus
4import mk.ukim.finki.busngobackend.repository.AvtobusRepository
5import org.springframework.stereotype.Service
6
7@Service
8class BusService(
9 private val avtobusRepository: AvtobusRepository,
10) {
11 fun findAll() = avtobusRepository.findAll()
12
13 fun findAllFree(): List<Avtobus> = this.avtobusRepository.findAllFreeBuses()
14}
Note: See TracBrowser for help on using the repository browser.