From 42f22622a6045f369c5af8448f2075aa056698a7 Mon Sep 17 00:00:00 2001 From: F1rsTTeaM Date: Tue, 5 Nov 2024 17:54:42 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D1=80=D0=B5=D0=BF=D0=BE=D0=B7=D0=B8=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B8=D0=B5=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/ICarRepository.cs | 16 ++++++++++++++++ .../Repositories/IDriverRepository.cs | 16 ++++++++++++++++ .../Repositories/IFuelRepository.cs | 16 ++++++++++++++++ .../Repositories/IRouteRepository.cs | 16 ++++++++++++++++ .../Repositories/ITripRepository.cs | 16 ++++++++++++++++ 5 files changed, 80 insertions(+) create mode 100644 FuelAndLubricants/FuelAndLubricants/Repositories/ICarRepository.cs create mode 100644 FuelAndLubricants/FuelAndLubricants/Repositories/IDriverRepository.cs create mode 100644 FuelAndLubricants/FuelAndLubricants/Repositories/IFuelRepository.cs create mode 100644 FuelAndLubricants/FuelAndLubricants/Repositories/IRouteRepository.cs create mode 100644 FuelAndLubricants/FuelAndLubricants/Repositories/ITripRepository.cs 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); +}