source: src/main/java/com/example/moviezone/service/Impl/Projection_RoomServiceImpl.java

Last change on this file was 00fa72f, checked in by DenicaKj <dkorvezir@…>, 21 months ago

Reservation Implemented

  • Property mode set to 100644
File size: 902 bytes
Line 
1package com.example.moviezone.service.Impl;
2
3import com.example.moviezone.model.Projection_Room;
4import com.example.moviezone.repository.Projection_RoomRepository;
5import com.example.moviezone.service.Projection_RoomService;
6import org.springframework.stereotype.Service;
7
8import java.util.List;
9
10@Service
11public class Projection_RoomServiceImpl implements Projection_RoomService {
12 private final Projection_RoomRepository projectionRoomRepository;
13
14 public Projection_RoomServiceImpl(Projection_RoomRepository projectionRoomRepository) {
15 this.projectionRoomRepository = projectionRoomRepository;
16 }
17
18 @Override
19 public List<Projection_Room> findAllProjectionRooms() {
20 return projectionRoomRepository.findAll();
21 }
22
23 @Override
24 public List<Projection_Room> getRoomByProjection(int id) {
25 return projectionRoomRepository.getRoomsForProjection(id);
26 }
27}
Note: See TracBrowser for help on using the repository browser.