From ab5606bf2fa4c5a4117d5738612240f99c749cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=BA=20=D0=98=D0=B3=D0=BE=D1=80=D1=8C?= Date: Sat, 1 Apr 2023 21:58:37 +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=20Search-=D0=BC=D0=BE=D0=B4=D0=B5=D0=BB=D0=B5=D0=B9=20?= =?UTF-8?q?=D0=B8=20=D0=BA=D0=BE=D0=BD=D1=82=D1=80=D0=B0=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessLogicsContracts/ICustomerLogic.cs | 15 +++++++++++++++ .../IItemForRepairLogic.cs | 15 +++++++++++++++ .../BusinessLogicsContracts/IItemLogic.cs | 15 +++++++++++++++ .../IRepairRequestLogic.cs | 15 +++++++++++++++ .../BusinessLogicsContracts/IVehicleLogic.cs | 15 +++++++++++++++ .../IWorkInRequestLogic.cs | 15 +++++++++++++++ .../BusinessLogicsContracts/IWorkLogic.cs | 15 +++++++++++++++ .../BusinessLogicsContracts/IWorkPaymentLogic.cs | 15 +++++++++++++++ .../BusinessLogicsContracts/IWorkerLogic.cs | 15 +++++++++++++++ .../SearchModels/CustomerSearchModel.cs | 7 +++++++ .../SearchModels/ItemForRepairSearchModel.cs | 7 +++++++ .../SearchModels/ItemSearchModel.cs | 7 +++++++ .../SearchModels/RepairRequestSearchModel.cs | 7 +++++++ .../SearchModels/VehicleSearchModel.cs | 7 +++++++ .../SearchModels/WorkInRequestSearchModel.cs | 7 +++++++ .../SearchModels/WorkPaymentSearchModel.cs | 7 +++++++ .../SearchModels/WorkSearchModel.cs | 7 +++++++ .../SearchModels/WorkerSearchModel.cs | 7 +++++++ 18 files changed, 198 insertions(+) create mode 100644 CarService/CarServiceContracts/BusinessLogicsContracts/ICustomerLogic.cs create mode 100644 CarService/CarServiceContracts/BusinessLogicsContracts/IItemForRepairLogic.cs create mode 100644 CarService/CarServiceContracts/BusinessLogicsContracts/IItemLogic.cs create mode 100644 CarService/CarServiceContracts/BusinessLogicsContracts/IRepairRequestLogic.cs create mode 100644 CarService/CarServiceContracts/BusinessLogicsContracts/IVehicleLogic.cs create mode 100644 CarService/CarServiceContracts/BusinessLogicsContracts/IWorkInRequestLogic.cs create mode 100644 CarService/CarServiceContracts/BusinessLogicsContracts/IWorkLogic.cs create mode 100644 CarService/CarServiceContracts/BusinessLogicsContracts/IWorkPaymentLogic.cs create mode 100644 CarService/CarServiceContracts/BusinessLogicsContracts/IWorkerLogic.cs create mode 100644 CarService/CarServiceContracts/SearchModels/CustomerSearchModel.cs create mode 100644 CarService/CarServiceContracts/SearchModels/ItemForRepairSearchModel.cs create mode 100644 CarService/CarServiceContracts/SearchModels/ItemSearchModel.cs create mode 100644 CarService/CarServiceContracts/SearchModels/RepairRequestSearchModel.cs create mode 100644 CarService/CarServiceContracts/SearchModels/VehicleSearchModel.cs create mode 100644 CarService/CarServiceContracts/SearchModels/WorkInRequestSearchModel.cs create mode 100644 CarService/CarServiceContracts/SearchModels/WorkPaymentSearchModel.cs create mode 100644 CarService/CarServiceContracts/SearchModels/WorkSearchModel.cs create mode 100644 CarService/CarServiceContracts/SearchModels/WorkerSearchModel.cs diff --git a/CarService/CarServiceContracts/BusinessLogicsContracts/ICustomerLogic.cs b/CarService/CarServiceContracts/BusinessLogicsContracts/ICustomerLogic.cs new file mode 100644 index 0000000..c227d4d --- /dev/null +++ b/CarService/CarServiceContracts/BusinessLogicsContracts/ICustomerLogic.cs @@ -0,0 +1,15 @@ +using CarServiceContracts.BindingModels; +using CarServiceContracts.SearchModels; +using CarServiceContracts.ViewModels; + +namespace CarServiceContracts.BusinessLogicsContracts +{ + public interface ICustomerLogic + { + List? ReadList(CustomerSearchModel? model); + CustomerViewModel? ReadElement(CustomerSearchModel model); + bool Create(CustomerBindingModel model); + bool Update(CustomerBindingModel model); + bool Delete(CustomerBindingModel model); + } +} diff --git a/CarService/CarServiceContracts/BusinessLogicsContracts/IItemForRepairLogic.cs b/CarService/CarServiceContracts/BusinessLogicsContracts/IItemForRepairLogic.cs new file mode 100644 index 0000000..8364d26 --- /dev/null +++ b/CarService/CarServiceContracts/BusinessLogicsContracts/IItemForRepairLogic.cs @@ -0,0 +1,15 @@ +using CarServiceContracts.BindingModels; +using CarServiceContracts.SearchModels; +using CarServiceContracts.ViewModels; + +namespace CarServiceContracts.BusinessLogicsContracts +{ + public interface IItemForRepairLogic + { + List? ReadList(ItemForRepairSearchModel? model); + CustomerViewModel? ReadElement(ItemForRepairSearchModel model); + bool Create(ItemForRepairBindingModel model); + bool Update(ItemForRepairBindingModel model); + bool Delete(ItemForRepairBindingModel model); + } +} diff --git a/CarService/CarServiceContracts/BusinessLogicsContracts/IItemLogic.cs b/CarService/CarServiceContracts/BusinessLogicsContracts/IItemLogic.cs new file mode 100644 index 0000000..bf2db37 --- /dev/null +++ b/CarService/CarServiceContracts/BusinessLogicsContracts/IItemLogic.cs @@ -0,0 +1,15 @@ +using CarServiceContracts.BindingModels; +using CarServiceContracts.SearchModels; +using CarServiceContracts.ViewModels; + +namespace CarServiceContracts.BusinessLogicsContracts +{ + public interface IItemLogic + { + List? ReadList(ItemSearchModel? model); + ItemViewModel? ReadElement(ItemSearchModel model); + bool Create(CustomerBindingModel model); + bool Update(CustomerBindingModel model); + bool Delete(CustomerBindingModel model); + } +} diff --git a/CarService/CarServiceContracts/BusinessLogicsContracts/IRepairRequestLogic.cs b/CarService/CarServiceContracts/BusinessLogicsContracts/IRepairRequestLogic.cs new file mode 100644 index 0000000..2f4d70c --- /dev/null +++ b/CarService/CarServiceContracts/BusinessLogicsContracts/IRepairRequestLogic.cs @@ -0,0 +1,15 @@ +using CarServiceContracts.BindingModels; +using CarServiceContracts.SearchModels; +using CarServiceContracts.ViewModels; + +namespace CarServiceContracts.BusinessLogicsContracts +{ + public interface IRepairRequestLogic + { + List? ReadList(RepairRequestSearchModel? model); + RepairRequestViewModel? ReadElement(RepairRequestSearchModel model); + bool Create(RepairRequestBindingModel model); + bool Update(RepairRequestBindingModel model); + bool Delete(RepairRequestBindingModel model); + } +} diff --git a/CarService/CarServiceContracts/BusinessLogicsContracts/IVehicleLogic.cs b/CarService/CarServiceContracts/BusinessLogicsContracts/IVehicleLogic.cs new file mode 100644 index 0000000..8bff54f --- /dev/null +++ b/CarService/CarServiceContracts/BusinessLogicsContracts/IVehicleLogic.cs @@ -0,0 +1,15 @@ +using CarServiceContracts.BindingModels; +using CarServiceContracts.SearchModels; +using CarServiceContracts.ViewModels; + +namespace CarServiceContracts.BusinessLogicsContracts +{ + public interface IVehicleLogic + { + List? ReadList(VehicleSearchModel? model); + VehicleViewModel? ReadElement(VehicleSearchModel model); + bool Create(VehicleBindingModel model); + bool Update(VehicleBindingModel model); + bool Delete(VehicleBindingModel model); + } +} diff --git a/CarService/CarServiceContracts/BusinessLogicsContracts/IWorkInRequestLogic.cs b/CarService/CarServiceContracts/BusinessLogicsContracts/IWorkInRequestLogic.cs new file mode 100644 index 0000000..da6b3ad --- /dev/null +++ b/CarService/CarServiceContracts/BusinessLogicsContracts/IWorkInRequestLogic.cs @@ -0,0 +1,15 @@ +using CarServiceContracts.BindingModels; +using CarServiceContracts.SearchModels; +using CarServiceContracts.ViewModels; + +namespace CarServiceContracts.BusinessLogicsContracts +{ + public interface IWorkInRequestLogic + { + List? ReadList(WorkInRequestSearchModel? model); + WorkInRequestViewModel? ReadElement(WorkInRequestSearchModel model); + bool Create(WorkInRequestBindingModel model); + bool Update(WorkInRequestBindingModel model); + bool Delete(WorkInRequestBindingModel model); + } +} diff --git a/CarService/CarServiceContracts/BusinessLogicsContracts/IWorkLogic.cs b/CarService/CarServiceContracts/BusinessLogicsContracts/IWorkLogic.cs new file mode 100644 index 0000000..c07bc0d --- /dev/null +++ b/CarService/CarServiceContracts/BusinessLogicsContracts/IWorkLogic.cs @@ -0,0 +1,15 @@ +using CarServiceContracts.BindingModels; +using CarServiceContracts.SearchModels; +using CarServiceContracts.ViewModels; + +namespace CarServiceContracts.BusinessLogicsContracts +{ + public interface IWorkLogic + { + List? ReadList(WorkSearchModel? model); + WorkViewModel? ReadElement(WorkSearchModel model); + bool Create(WorkBindingModel model); + bool Update(WorkBindingModel model); + bool Delete(WorkBindingModel model); + } +} diff --git a/CarService/CarServiceContracts/BusinessLogicsContracts/IWorkPaymentLogic.cs b/CarService/CarServiceContracts/BusinessLogicsContracts/IWorkPaymentLogic.cs new file mode 100644 index 0000000..9cc54e2 --- /dev/null +++ b/CarService/CarServiceContracts/BusinessLogicsContracts/IWorkPaymentLogic.cs @@ -0,0 +1,15 @@ +using CarServiceContracts.BindingModels; +using CarServiceContracts.SearchModels; +using CarServiceContracts.ViewModels; + +namespace CarServiceContracts.BusinessLogicsContracts +{ + public interface IWorkPaymentLogic + { + List? ReadList(WorkPaymentSearchModel? model); + WorkPaymentViewModel? ReadElement(WorkPaymentSearchModel model); + bool Create(WorkPaymentBindingModel model); + bool Update(WorkPaymentBindingModel model); + bool Delete(WorkPaymentBindingModel model); + } +} diff --git a/CarService/CarServiceContracts/BusinessLogicsContracts/IWorkerLogic.cs b/CarService/CarServiceContracts/BusinessLogicsContracts/IWorkerLogic.cs new file mode 100644 index 0000000..624821f --- /dev/null +++ b/CarService/CarServiceContracts/BusinessLogicsContracts/IWorkerLogic.cs @@ -0,0 +1,15 @@ +using CarServiceContracts.BindingModels; +using CarServiceContracts.SearchModels; +using CarServiceContracts.ViewModels; + +namespace CarServiceContracts.BusinessLogicsContracts +{ + public interface IWorkerLogic + { + List? ReadList(WorkerSearchModel? model); + WorkerViewModel? ReadElement(WorkerSearchModel model); + bool Create(WorkerBindingModel model); + bool Update(WorkerBindingModel model); + bool Delete(WorkerBindingModel model); + } +} diff --git a/CarService/CarServiceContracts/SearchModels/CustomerSearchModel.cs b/CarService/CarServiceContracts/SearchModels/CustomerSearchModel.cs new file mode 100644 index 0000000..d93ad09 --- /dev/null +++ b/CarService/CarServiceContracts/SearchModels/CustomerSearchModel.cs @@ -0,0 +1,7 @@ +namespace CarServiceContracts.SearchModels +{ + public class CustomerSearchModel + { + public int? Id { get; set; } + } +} diff --git a/CarService/CarServiceContracts/SearchModels/ItemForRepairSearchModel.cs b/CarService/CarServiceContracts/SearchModels/ItemForRepairSearchModel.cs new file mode 100644 index 0000000..3a7473e --- /dev/null +++ b/CarService/CarServiceContracts/SearchModels/ItemForRepairSearchModel.cs @@ -0,0 +1,7 @@ +namespace CarServiceContracts.SearchModels +{ + public class ItemForRepairSearchModel + { + public int? Id { get; set; } + } +} diff --git a/CarService/CarServiceContracts/SearchModels/ItemSearchModel.cs b/CarService/CarServiceContracts/SearchModels/ItemSearchModel.cs new file mode 100644 index 0000000..8f54a26 --- /dev/null +++ b/CarService/CarServiceContracts/SearchModels/ItemSearchModel.cs @@ -0,0 +1,7 @@ +namespace CarServiceContracts.SearchModels +{ + public class ItemSearchModel + { + public int? Id { get; set; } + } +} diff --git a/CarService/CarServiceContracts/SearchModels/RepairRequestSearchModel.cs b/CarService/CarServiceContracts/SearchModels/RepairRequestSearchModel.cs new file mode 100644 index 0000000..fcc3bf4 --- /dev/null +++ b/CarService/CarServiceContracts/SearchModels/RepairRequestSearchModel.cs @@ -0,0 +1,7 @@ +namespace CarServiceContracts.SearchModels +{ + public class RepairRequestSearchModel + { + public int? Id { get; set; } + } +} diff --git a/CarService/CarServiceContracts/SearchModels/VehicleSearchModel.cs b/CarService/CarServiceContracts/SearchModels/VehicleSearchModel.cs new file mode 100644 index 0000000..15e17ea --- /dev/null +++ b/CarService/CarServiceContracts/SearchModels/VehicleSearchModel.cs @@ -0,0 +1,7 @@ +namespace CarServiceContracts.SearchModels +{ + public class VehicleSearchModel + { + public int? Id { get; set; } + } +} diff --git a/CarService/CarServiceContracts/SearchModels/WorkInRequestSearchModel.cs b/CarService/CarServiceContracts/SearchModels/WorkInRequestSearchModel.cs new file mode 100644 index 0000000..84fcd1a --- /dev/null +++ b/CarService/CarServiceContracts/SearchModels/WorkInRequestSearchModel.cs @@ -0,0 +1,7 @@ +namespace CarServiceContracts.SearchModels +{ + public class WorkInRequestSearchModel + { + public int? Id { get; set; } + } +} diff --git a/CarService/CarServiceContracts/SearchModels/WorkPaymentSearchModel.cs b/CarService/CarServiceContracts/SearchModels/WorkPaymentSearchModel.cs new file mode 100644 index 0000000..d6c2246 --- /dev/null +++ b/CarService/CarServiceContracts/SearchModels/WorkPaymentSearchModel.cs @@ -0,0 +1,7 @@ +namespace CarServiceContracts.SearchModels +{ + public class WorkPaymentSearchModel + { + public int? Id { get; set; } + } +} diff --git a/CarService/CarServiceContracts/SearchModels/WorkSearchModel.cs b/CarService/CarServiceContracts/SearchModels/WorkSearchModel.cs new file mode 100644 index 0000000..ca3fe67 --- /dev/null +++ b/CarService/CarServiceContracts/SearchModels/WorkSearchModel.cs @@ -0,0 +1,7 @@ +namespace CarServiceContracts.SearchModels +{ + public class WorkSearchModel + { + public int? Id { get; set; } + } +} diff --git a/CarService/CarServiceContracts/SearchModels/WorkerSearchModel.cs b/CarService/CarServiceContracts/SearchModels/WorkerSearchModel.cs new file mode 100644 index 0000000..f130d89 --- /dev/null +++ b/CarService/CarServiceContracts/SearchModels/WorkerSearchModel.cs @@ -0,0 +1,7 @@ +namespace CarServiceContracts.SearchModels +{ + public class WorkerSearchModel + { + public int? Id { get; set; } + } +}