Creation of appointment implemented
This commit is contained in:
21
src/main/java/de/etecture/ga/service/GarageService.java
Normal file
21
src/main/java/de/etecture/ga/service/GarageService.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package de.etecture.ga.service;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import de.etecture.ga.model.Garage;
|
||||
import de.etecture.ga.repository.GarageRepository;
|
||||
import lombok.AllArgsConstructor;
|
||||
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class GarageService {
|
||||
|
||||
private final GarageRepository repository;
|
||||
|
||||
|
||||
public Optional<Garage> getGarage(long id) {
|
||||
return repository.findById(id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user