diff --git a/FuelAndLubricants/FuelAndLubricants/Repositories/ICarRepository.cs b/FuelAndLubricants/FuelAndLubricants/Repositories/ICarRepository.cs new file mode 100644 index 0000000..86c62e5 --- /dev/null +++ b/FuelAndLubricants/FuelAndLubricants/Repositories/ICarRepository.cs @@ -0,0 +1,16 @@ +using FuelAndLubricants.Entities; + +namespace FuelAndLubricants.Repositories; + +public interface ICarRepository +{ + IEnumerable ReadCars(); + + Car ReadCarByID(int id); + + void CreateCar(Car car); + + //void UpdateCar(Car car); + + void DeleteCar(int id); +} diff --git a/FuelAndLubricants/FuelAndLubricants/Repositories/IDriverRepository.cs b/FuelAndLubricants/FuelAndLubricants/Repositories/IDriverRepository.cs new file mode 100644 index 0000000..f0ee896 --- /dev/null +++ b/FuelAndLubricants/FuelAndLubricants/Repositories/IDriverRepository.cs @@ -0,0 +1,16 @@ +using FuelAndLubricants.Entities; + +namespace FuelAndLubricants.Repositories; + +public interface IDriverRepository +{ + IEnumerable ReadDrivers(); + + Driver ReadDriverByID(int id); + + void CreateDriver(Driver driver); + + void UpdateDriver(Driver driver); + + void DeleteDriver(int id); +} diff --git a/FuelAndLubricants/FuelAndLubricants/Repositories/IFuelRepository.cs b/FuelAndLubricants/FuelAndLubricants/Repositories/IFuelRepository.cs new file mode 100644 index 0000000..5988b93 --- /dev/null +++ b/FuelAndLubricants/FuelAndLubricants/Repositories/IFuelRepository.cs @@ -0,0 +1,16 @@ +using FuelAndLubricants.Entities; + +namespace FuelAndLubricants.Repositories; + +public interface IFuelRepository +{ + IEnumerable ReadFuels(); + + Fuel_And_Lubricants ReadFuelByID(int id); + + void CreateDriver(Fuel_And_Lubricants fuel); + + void UpdateFuel(Fuel_And_Lubricants fuel); + + void DeleteFuel(int id); +} diff --git a/FuelAndLubricants/FuelAndLubricants/Repositories/IRouteRepository.cs b/FuelAndLubricants/FuelAndLubricants/Repositories/IRouteRepository.cs new file mode 100644 index 0000000..8810642 --- /dev/null +++ b/FuelAndLubricants/FuelAndLubricants/Repositories/IRouteRepository.cs @@ -0,0 +1,16 @@ +using FuelAndLubricants.Entities; + +namespace FuelAndLubricants.Repositories; + +public interface IRouteRepository +{ + IEnumerable ReadRoutes(); + + Route ReadRouteByID(int id); + + void CreateRoute(Route route); + + //void UpdateRoute(Route route); + + void DeleteRoute(int id); +} diff --git a/FuelAndLubricants/FuelAndLubricants/Repositories/ITripRepository.cs b/FuelAndLubricants/FuelAndLubricants/Repositories/ITripRepository.cs new file mode 100644 index 0000000..87c847b --- /dev/null +++ b/FuelAndLubricants/FuelAndLubricants/Repositories/ITripRepository.cs @@ -0,0 +1,16 @@ +using FuelAndLubricants.Entities; + +namespace FuelAndLubricants.Repositories; + +public interface ITripRepository +{ + IEnumerable ReadTrips(); + + Trip ReadTripByID(int id); + + void CreateTrip(Trip trip); + + //void UpdateTrip(Trip trip); + + void DeleteTrip(int id); +}