source: src/main/java/com/example/moviezone/service/Impl/SeatServiceImpl.java@ afa6544

Last change on this file since afa6544 was 64ee7f4, checked in by DenicaKj <dkorvezir@…>, 22 months ago

Fixes

  • Property mode set to 100644
File size: 815 bytes
Line 
1package com.example.moviezone.service.Impl;
2
3import com.example.moviezone.model.Projection_Room;
4import com.example.moviezone.model.Seat;
5import com.example.moviezone.repository.SeatRepository;
6import com.example.moviezone.service.SeatService;
7import org.springframework.stereotype.Service;
8
9import java.util.List;
10
11@Service
12public class SeatServiceImpl implements SeatService {
13 private final SeatRepository seatRepository;
14
15 public SeatServiceImpl(SeatRepository seatRepository) {
16 this.seatRepository = seatRepository;
17 }
18
19 @Override
20 public List<Seat> findAllSeats() {
21 return seatRepository.findAll();
22 }
23
24 @Override
25 public List<Seat> findAllByProjection_Room(Projection_Room projection_room) {
26 return seatRepository.findAllByProjection(projection_room);
27 }
28}
Note: See TracBrowser for help on using the repository browser.