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 java.util.List;

public interface CarService {

	void createCar(Car car) throws CarNotCreateException;

	List<Car> findAllCars() throws CarDBEmptyException;

}

@@ -195,16 +195,77 @@
 ception;
+%0Aimport bg.car_wash.areas.car.exception.CarNotFoundException;
 %0A%0Aimport
@@ -423,10 +423,68 @@
 ption;%0A%0A
+%09void deleteCarById(Long id) throws CarNotFoundException;%0A
 %7D%0A

add delete by id