package bg.car_wash.areas.car.service;

import bg.car_wash.areas.car.entity.Car;
import bg.car_wash.areas.car.exception.CarDBEmptyException;
import bg.car_wash.areas.car.exception.CarNotCreateException;
import bg.car_wash.areas.car.exception.CarNotFoundException;

import java.util.List;

public interface CarService {

	void createCar(Car car) throws CarNotCreateException;

	List<Car> findAllCars() throws CarDBEmptyException;

	void deleteCarById(Long id) throws CarNotFoundException;
}

@@ -480,11 +480,67 @@
 ception;
+%0A%0A%09Car findCarById(Long id) throws CarNotFoundException;
 %0A%7D%0A

create findCarById and implementation!