From e9774d6b480bb57597fe294450874085b88f1fb8 Mon Sep 17 00:00:00 2001 From: Zakharov_Rostislav Date: Sun, 5 May 2024 22:02:53 +0400 Subject: [PATCH] add contracts --- .../BusinessLogic/ICarLogic.cs | 20 ++++++++++++++++++ .../BusinessLogic/IClientLogic.cs | 20 ++++++++++++++++++ .../BusinessLogic/IEmployeeLogic.cs | 21 +++++++++++++++++++ .../BusinessLogic/IMakeLogic.cs | 20 ++++++++++++++++++ .../BusinessLogic/IModelBusinessLogic.cs | 21 +++++++++++++++++++ .../BusinessLogic/ISaleLogic.cs | 20 ++++++++++++++++++ .../BusinessLogic/IServiceLogic.cs | 20 ++++++++++++++++++ CarShowroom/CarShowroomContracts/Class1.cs | 7 ------- .../StorageContracts/ICarStorage.cs | 21 +++++++++++++++++++ .../StorageContracts/IClientLogic.cs | 21 +++++++++++++++++++ .../StorageContracts/IEmployeeStorage.cs | 21 +++++++++++++++++++ .../StorageContracts/IMakeStorage.cs | 21 +++++++++++++++++++ .../StorageContracts/IModelStorage.cs | 21 +++++++++++++++++++ .../StorageContracts/ISaleStorage.cs | 21 +++++++++++++++++++ .../StorageContracts/IServiceStoragecs.cs | 21 +++++++++++++++++++ .../CarShowroomDataModels.csproj | 4 ---- .../CarShowroomDataModels/Dtos/CarDto.cs | 2 +- .../CarShowroomDataModels/Dtos/ClientDto.cs | 2 +- .../CarShowroomDataModels/Dtos/EmployeeDto.cs | 2 +- .../CarShowroomDataModels/Dtos/MakeDto.cs | 2 +- .../Dtos/{ModeDto.cs => ModelDto.cs} | 6 +++--- .../CarShowroomDataModels/Dtos/SaleDto.cs | 2 +- .../CarShowroomDataModels/Dtos/ServiceDto.cs | 2 +- .../SearchModel/CarSearch.cs | 13 ++++++++++++ .../SearchModel/ClientSearch.cs | 13 ++++++++++++ .../SearchModel/EmployeeSearch.cs | 15 +++++++++++++ .../SearchModel/MakeSearch.cs | 13 ++++++++++++ .../SearchModel/ModelSearch.cs | 13 ++++++++++++ .../SearchModel/SaleSearch.cs | 13 ++++++++++++ .../SearchModel/ServiceSearch.cs | 13 ++++++++++++ .../CarShowroomDataModels/Views/CarView.cs | 2 +- .../CarShowroomDataModels/Views/ClientView.cs | 2 +- .../Views/EmployeeView.cs | 2 +- .../CarShowroomDataModels/Views/MakeView.cs | 2 +- .../CarShowroomDataModels/Views/ModelView.cs | 2 +- .../Views/ServiceView.cs | 2 +- .../Entities/Car.cs | 2 +- .../Entities/Client.cs | 2 +- .../Entities/Employee.cs | 2 +- .../Entities/Make.cs | 2 +- .../Entities/Model.cs | 2 +- .../Entities/Sale.cs | 1 - .../Entities/Service.cs | 2 +- 43 files changed, 403 insertions(+), 33 deletions(-) create mode 100644 CarShowroom/CarShowroomContracts/BusinessLogic/ICarLogic.cs create mode 100644 CarShowroom/CarShowroomContracts/BusinessLogic/IClientLogic.cs create mode 100644 CarShowroom/CarShowroomContracts/BusinessLogic/IEmployeeLogic.cs create mode 100644 CarShowroom/CarShowroomContracts/BusinessLogic/IMakeLogic.cs create mode 100644 CarShowroom/CarShowroomContracts/BusinessLogic/IModelBusinessLogic.cs create mode 100644 CarShowroom/CarShowroomContracts/BusinessLogic/ISaleLogic.cs create mode 100644 CarShowroom/CarShowroomContracts/BusinessLogic/IServiceLogic.cs delete mode 100644 CarShowroom/CarShowroomContracts/Class1.cs create mode 100644 CarShowroom/CarShowroomContracts/StorageContracts/ICarStorage.cs create mode 100644 CarShowroom/CarShowroomContracts/StorageContracts/IClientLogic.cs create mode 100644 CarShowroom/CarShowroomContracts/StorageContracts/IEmployeeStorage.cs create mode 100644 CarShowroom/CarShowroomContracts/StorageContracts/IMakeStorage.cs create mode 100644 CarShowroom/CarShowroomContracts/StorageContracts/IModelStorage.cs create mode 100644 CarShowroom/CarShowroomContracts/StorageContracts/ISaleStorage.cs create mode 100644 CarShowroom/CarShowroomContracts/StorageContracts/IServiceStoragecs.cs rename CarShowroom/CarShowroomDataModels/Dtos/{ModeDto.cs => ModelDto.cs} (81%) create mode 100644 CarShowroom/CarShowroomDataModels/SearchModel/CarSearch.cs create mode 100644 CarShowroom/CarShowroomDataModels/SearchModel/ClientSearch.cs create mode 100644 CarShowroom/CarShowroomDataModels/SearchModel/EmployeeSearch.cs create mode 100644 CarShowroom/CarShowroomDataModels/SearchModel/MakeSearch.cs create mode 100644 CarShowroom/CarShowroomDataModels/SearchModel/ModelSearch.cs create mode 100644 CarShowroom/CarShowroomDataModels/SearchModel/SaleSearch.cs create mode 100644 CarShowroom/CarShowroomDataModels/SearchModel/ServiceSearch.cs diff --git a/CarShowroom/CarShowroomContracts/BusinessLogic/ICarLogic.cs b/CarShowroom/CarShowroomContracts/BusinessLogic/ICarLogic.cs new file mode 100644 index 0000000..f8f05fa --- /dev/null +++ b/CarShowroom/CarShowroomContracts/BusinessLogic/ICarLogic.cs @@ -0,0 +1,20 @@ +using CarShowroomDataModels.Dtos; +using CarShowroomDataModels.SearchModel; +using CarShowroomDataModels.Views; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomContracts.BusinessLogic +{ + public interface ICarLogic + { + List? ReadList(CarSearch? model); + CarView? ReadElement(CarSearch model); + bool Create(CarDto model); + bool Update(CarDto model); + bool Delete(CarDto model); + } +} diff --git a/CarShowroom/CarShowroomContracts/BusinessLogic/IClientLogic.cs b/CarShowroom/CarShowroomContracts/BusinessLogic/IClientLogic.cs new file mode 100644 index 0000000..2df2722 --- /dev/null +++ b/CarShowroom/CarShowroomContracts/BusinessLogic/IClientLogic.cs @@ -0,0 +1,20 @@ +using CarShowroomDataModels.Dtos; +using CarShowroomDataModels.SearchModel; +using CarShowroomDataModels.Views; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomContracts.BusinessLogic +{ + public interface IClientLogic + { + List? ReadList(ClientSearch? model); + ClientView? ReadElement(ClientSearch model); + bool Create(ClientDto model); + bool Update(ClientDto model); + bool Delete(ClientDto model); + } +} diff --git a/CarShowroom/CarShowroomContracts/BusinessLogic/IEmployeeLogic.cs b/CarShowroom/CarShowroomContracts/BusinessLogic/IEmployeeLogic.cs new file mode 100644 index 0000000..f632814 --- /dev/null +++ b/CarShowroom/CarShowroomContracts/BusinessLogic/IEmployeeLogic.cs @@ -0,0 +1,21 @@ +using CarShowroomContracts.Dtos; +using CarShowroomDataModels.Dtos; +using CarShowroomDataModels.SearchModel; +using CarShowroomDataModels.Views; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomContracts.BusinessLogic +{ + public interface IEmployeeLogic + { + List? ReadList(EmployeeSearch? model); + EmployeeView? ReadElement(EmployeeSearch model); + bool Create(EmployeeDto model); + bool Update(EmployeeDto model); + bool Delete(EmployeeDto model); + } +} diff --git a/CarShowroom/CarShowroomContracts/BusinessLogic/IMakeLogic.cs b/CarShowroom/CarShowroomContracts/BusinessLogic/IMakeLogic.cs new file mode 100644 index 0000000..db001b1 --- /dev/null +++ b/CarShowroom/CarShowroomContracts/BusinessLogic/IMakeLogic.cs @@ -0,0 +1,20 @@ +using CarShowroomContracts.Dtos; +using CarShowroomDataModels.Views; +using CarShowroomDataModels.SearchModel; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomContracts.BusinessLogic +{ + public interface IMakeLogic + { + List? ReadList(MakeSearch? model); + MakeView? ReadElement(MakeSearch model); + bool Create(MakeDto model); + bool Update(MakeDto model); + bool Delete(MakeDto model); + } +} diff --git a/CarShowroom/CarShowroomContracts/BusinessLogic/IModelBusinessLogic.cs b/CarShowroom/CarShowroomContracts/BusinessLogic/IModelBusinessLogic.cs new file mode 100644 index 0000000..cf9bad0 --- /dev/null +++ b/CarShowroom/CarShowroomContracts/BusinessLogic/IModelBusinessLogic.cs @@ -0,0 +1,21 @@ +using CarShowroomContracts.Dtos; +using CarShowroomDataModels.Views; +using CarShowroomDataModels.SearchModel; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using CarShowroomDataModels.Dtos; + +namespace CarShowroomContracts.BusinessLogic +{ + public interface IModelLogic + { + List? ReadList(ModelSearch? model); + ModelView? ReadElement(ModelSearch model); + bool Create(ModelDto model); + bool Update(ModelDto model); + bool Delete(ModelDto model); + } +} diff --git a/CarShowroom/CarShowroomContracts/BusinessLogic/ISaleLogic.cs b/CarShowroom/CarShowroomContracts/BusinessLogic/ISaleLogic.cs new file mode 100644 index 0000000..0cfde50 --- /dev/null +++ b/CarShowroom/CarShowroomContracts/BusinessLogic/ISaleLogic.cs @@ -0,0 +1,20 @@ +using CarShowroomDataModels.Dtos; +using CarShowroomDataModels.SearchModel; +using CarShowroomDataModels.Views; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomContracts.BusinessLogic +{ + public interface ISaleLogic + { + List? ReadList(SaleSearch? model); + SaleView? ReadElement(SaleSearch model); + bool Create(SaleDto model); + bool Update(SaleDto model); + bool Delete(SaleDto model); + } +} diff --git a/CarShowroom/CarShowroomContracts/BusinessLogic/IServiceLogic.cs b/CarShowroom/CarShowroomContracts/BusinessLogic/IServiceLogic.cs new file mode 100644 index 0000000..067308d --- /dev/null +++ b/CarShowroom/CarShowroomContracts/BusinessLogic/IServiceLogic.cs @@ -0,0 +1,20 @@ +using CarShowroomDataModels.Dtos; +using CarShowroomDataModels.SearchModel; +using CarShowroomDataModels.Views; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ServiceShowroomContracts.BusinessLogic +{ + public interface IServiceLogic + { + List? ReadList(ServiceSearch? model); + ServiceView? ReadElement(ServiceSearch model); + bool Create(ServiceDto model); + bool Update(ServiceDto model); + bool Delete(ServiceDto model); + } +} diff --git a/CarShowroom/CarShowroomContracts/Class1.cs b/CarShowroom/CarShowroomContracts/Class1.cs deleted file mode 100644 index e19f2cd..0000000 --- a/CarShowroom/CarShowroomContracts/Class1.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace CarShowroomContracts -{ - public class Class1 - { - - } -} diff --git a/CarShowroom/CarShowroomContracts/StorageContracts/ICarStorage.cs b/CarShowroom/CarShowroomContracts/StorageContracts/ICarStorage.cs new file mode 100644 index 0000000..798c818 --- /dev/null +++ b/CarShowroom/CarShowroomContracts/StorageContracts/ICarStorage.cs @@ -0,0 +1,21 @@ +using CarShowroomDataModels.Dtos; +using CarShowroomDataModels.SearchModel; +using CarShowroomDataModels.Views; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomContracts.StorageContracts +{ + public interface ICarStorage + { + List GetFullList(); + List GetFilteredList(CarSearch model); + CarView? GetElement(CarSearch model); + CarView? Insert(CarDto model); + CarView? Update(CarDto model); + CarView? Delete(CarDto model); + } +} diff --git a/CarShowroom/CarShowroomContracts/StorageContracts/IClientLogic.cs b/CarShowroom/CarShowroomContracts/StorageContracts/IClientLogic.cs new file mode 100644 index 0000000..55def81 --- /dev/null +++ b/CarShowroom/CarShowroomContracts/StorageContracts/IClientLogic.cs @@ -0,0 +1,21 @@ +using CarShowroomDataModels.Dtos; +using CarShowroomDataModels.SearchModel; +using CarShowroomDataModels.Views; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomContracts.StorageContracts +{ + public interface IClientStorage + { + List GetFullList(); + List GetFilteredList(ClientSearch model); + ClientView? GetElement(ClientSearch model); + ClientView? Insert(ClientDto model); + ClientView? Update(ClientDto model); + ClientView? Delete(ClientDto model); + } +} diff --git a/CarShowroom/CarShowroomContracts/StorageContracts/IEmployeeStorage.cs b/CarShowroom/CarShowroomContracts/StorageContracts/IEmployeeStorage.cs new file mode 100644 index 0000000..45aa45f --- /dev/null +++ b/CarShowroom/CarShowroomContracts/StorageContracts/IEmployeeStorage.cs @@ -0,0 +1,21 @@ +using CarShowroomDataModels.Dtos; +using CarShowroomDataModels.SearchModel; +using CarShowroomDataModels.Views; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomContracts.StorageContracts +{ + public interface IEmployeeStorage + { + List GetFullList(); + List GetFilteredList(EmployeeSearch model); + EmployeeView? GetElement(EmployeeSearch model); + EmployeeView? Insert(EmployeeDto model); + EmployeeView? Update(EmployeeDto model); + EmployeeView? Delete(EmployeeDto model); + } +} diff --git a/CarShowroom/CarShowroomContracts/StorageContracts/IMakeStorage.cs b/CarShowroom/CarShowroomContracts/StorageContracts/IMakeStorage.cs new file mode 100644 index 0000000..492fa5a --- /dev/null +++ b/CarShowroom/CarShowroomContracts/StorageContracts/IMakeStorage.cs @@ -0,0 +1,21 @@ +using CarShowroomDataModels.Dtos; +using CarShowroomDataModels.SearchModel; +using CarShowroomDataModels.Views; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomContracts.StorageContracts +{ + public interface IMakeStorage + { + List GetFullList(); + List GetFilteredList(MakeSearch model); + MakeView? GetElement(MakeSearch model); + MakeView? Insert(MakeDto model); + MakeView? Update(MakeDto model); + MakeView? Delete(MakeDto model); + } +} diff --git a/CarShowroom/CarShowroomContracts/StorageContracts/IModelStorage.cs b/CarShowroom/CarShowroomContracts/StorageContracts/IModelStorage.cs new file mode 100644 index 0000000..2ca4170 --- /dev/null +++ b/CarShowroom/CarShowroomContracts/StorageContracts/IModelStorage.cs @@ -0,0 +1,21 @@ +using CarShowroomDataModels.Dtos; +using CarShowroomDataModels.SearchModel; +using CarShowroomDataModels.Views; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomContracts.StorageContracts +{ + public interface IModelStorage + { + List GetFullList(); + List GetFilteredList(ModelSearch model); + ModelView? GetElement(ModelSearch model); + ModelView? Insert(ModelDto model); + ModelView? Update(ModelDto model); + ModelView? Delete(ModelDto model); + } +} diff --git a/CarShowroom/CarShowroomContracts/StorageContracts/ISaleStorage.cs b/CarShowroom/CarShowroomContracts/StorageContracts/ISaleStorage.cs new file mode 100644 index 0000000..ef76e42 --- /dev/null +++ b/CarShowroom/CarShowroomContracts/StorageContracts/ISaleStorage.cs @@ -0,0 +1,21 @@ +using CarShowroomDataModels.Dtos; +using CarShowroomDataModels.SearchModel; +using CarShowroomDataModels.Views; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomContracts.StorageContracts +{ + public interface ISaleStorage + { + List GetFullList(); + List GetFilteredList(SaleSearch model); + SaleView? GetElement(SaleSearch model); + SaleView? Insert(SaleDto model); + SaleView? Update(SaleDto model); + SaleView? Delete(SaleDto model); + } +} diff --git a/CarShowroom/CarShowroomContracts/StorageContracts/IServiceStoragecs.cs b/CarShowroom/CarShowroomContracts/StorageContracts/IServiceStoragecs.cs new file mode 100644 index 0000000..fb058f8 --- /dev/null +++ b/CarShowroom/CarShowroomContracts/StorageContracts/IServiceStoragecs.cs @@ -0,0 +1,21 @@ +using CarShowroomDataModels.Dtos; +using CarShowroomDataModels.SearchModel; +using CarShowroomDataModels.Views; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomContracts.StorageContracts +{ + public interface IServiceStorage + { + List GetFullList(); + List GetFilteredList(ServiceSearch model); + ServiceView? GetElement(ServiceSearch model); + ServiceView? Insert(ServiceDto model); + ServiceView? Update(ServiceDto model); + ServiceView? Delete(ServiceDto model); + } +} diff --git a/CarShowroom/CarShowroomDataModels/CarShowroomDataModels.csproj b/CarShowroom/CarShowroomDataModels/CarShowroomDataModels.csproj index 0e82290..132c02c 100644 --- a/CarShowroom/CarShowroomDataModels/CarShowroomDataModels.csproj +++ b/CarShowroom/CarShowroomDataModels/CarShowroomDataModels.csproj @@ -6,8 +6,4 @@ enable - - - - diff --git a/CarShowroom/CarShowroomDataModels/Dtos/CarDto.cs b/CarShowroom/CarShowroomDataModels/Dtos/CarDto.cs index 1423b95..bd8c49d 100644 --- a/CarShowroom/CarShowroomDataModels/Dtos/CarDto.cs +++ b/CarShowroom/CarShowroomDataModels/Dtos/CarDto.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace CarShowroomContracts.Dtos +namespace CarShowroomDataModels.Dtos { public class CarDto : ICar { diff --git a/CarShowroom/CarShowroomDataModels/Dtos/ClientDto.cs b/CarShowroom/CarShowroomDataModels/Dtos/ClientDto.cs index 46cf584..7cbef49 100644 --- a/CarShowroom/CarShowroomDataModels/Dtos/ClientDto.cs +++ b/CarShowroom/CarShowroomDataModels/Dtos/ClientDto.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace CarShowroomContracts.Dtos +namespace CarShowroomDataModels.Dtos { public class ClientDto : IClient { diff --git a/CarShowroom/CarShowroomDataModels/Dtos/EmployeeDto.cs b/CarShowroom/CarShowroomDataModels/Dtos/EmployeeDto.cs index d971a56..c44739e 100644 --- a/CarShowroom/CarShowroomDataModels/Dtos/EmployeeDto.cs +++ b/CarShowroom/CarShowroomDataModels/Dtos/EmployeeDto.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace CarShowroomContracts.Dtos +namespace CarShowroomDataModels.Dtos { public class EmployeeDto : IEmployee { diff --git a/CarShowroom/CarShowroomDataModels/Dtos/MakeDto.cs b/CarShowroom/CarShowroomDataModels/Dtos/MakeDto.cs index 52f6597..3331372 100644 --- a/CarShowroom/CarShowroomDataModels/Dtos/MakeDto.cs +++ b/CarShowroom/CarShowroomDataModels/Dtos/MakeDto.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace CarShowroomContracts.Dtos +namespace CarShowroomDataModels.Dtos { public class MakeDto : IMake { diff --git a/CarShowroom/CarShowroomDataModels/Dtos/ModeDto.cs b/CarShowroom/CarShowroomDataModels/Dtos/ModelDto.cs similarity index 81% rename from CarShowroom/CarShowroomDataModels/Dtos/ModeDto.cs rename to CarShowroom/CarShowroomDataModels/Dtos/ModelDto.cs index 2f65f73..ebfe73a 100644 --- a/CarShowroom/CarShowroomDataModels/Dtos/ModeDto.cs +++ b/CarShowroom/CarShowroomDataModels/Dtos/ModelDto.cs @@ -5,15 +5,15 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace CarShowroomContracts.Dtos +namespace CarShowroomDataModels.Dtos { - public class ModeDto : IModel + public class ModelDto : IModel { public int Id { get; set; } public string Name { get; set; } public int Price { get; set; } public int MakeId { get; set; } - public ModeDto(IModel model) + public ModelDto(IModel model) { Id = model.Id; Name = model.Name; diff --git a/CarShowroom/CarShowroomDataModels/Dtos/SaleDto.cs b/CarShowroom/CarShowroomDataModels/Dtos/SaleDto.cs index a7d4f10..099837b 100644 --- a/CarShowroom/CarShowroomDataModels/Dtos/SaleDto.cs +++ b/CarShowroom/CarShowroomDataModels/Dtos/SaleDto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace CarShowroomDataModels.Dtos { - internal class SaleDto : ISale + public class SaleDto : ISale { public int Id { get; set; } public DateTime SaleTime { get; set; } diff --git a/CarShowroom/CarShowroomDataModels/Dtos/ServiceDto.cs b/CarShowroom/CarShowroomDataModels/Dtos/ServiceDto.cs index 434b06a..b307896 100644 --- a/CarShowroom/CarShowroomDataModels/Dtos/ServiceDto.cs +++ b/CarShowroom/CarShowroomDataModels/Dtos/ServiceDto.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace CarShowroomContracts.Dtos +namespace CarShowroomDataModels.Dtos { public class ServiceDto : IService { diff --git a/CarShowroom/CarShowroomDataModels/SearchModel/CarSearch.cs b/CarShowroom/CarShowroomDataModels/SearchModel/CarSearch.cs new file mode 100644 index 0000000..ae75407 --- /dev/null +++ b/CarShowroom/CarShowroomDataModels/SearchModel/CarSearch.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomDataModels.SearchModel +{ + public class CarSearch + { + public int? Id; + } +} diff --git a/CarShowroom/CarShowroomDataModels/SearchModel/ClientSearch.cs b/CarShowroom/CarShowroomDataModels/SearchModel/ClientSearch.cs new file mode 100644 index 0000000..1f7627f --- /dev/null +++ b/CarShowroom/CarShowroomDataModels/SearchModel/ClientSearch.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomDataModels.SearchModel +{ + public class ClientSearch + { + public int? Id; + } +} diff --git a/CarShowroom/CarShowroomDataModels/SearchModel/EmployeeSearch.cs b/CarShowroom/CarShowroomDataModels/SearchModel/EmployeeSearch.cs new file mode 100644 index 0000000..294aff8 --- /dev/null +++ b/CarShowroom/CarShowroomDataModels/SearchModel/EmployeeSearch.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomDataModels.SearchModel +{ + public class EmployeeSearch + { + public int? Id; + public string? Email; + public string? Password; + } +} diff --git a/CarShowroom/CarShowroomDataModels/SearchModel/MakeSearch.cs b/CarShowroom/CarShowroomDataModels/SearchModel/MakeSearch.cs new file mode 100644 index 0000000..ef33e75 --- /dev/null +++ b/CarShowroom/CarShowroomDataModels/SearchModel/MakeSearch.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomDataModels.SearchModel +{ + public class MakeSearch + { + public int? Id; + } +} diff --git a/CarShowroom/CarShowroomDataModels/SearchModel/ModelSearch.cs b/CarShowroom/CarShowroomDataModels/SearchModel/ModelSearch.cs new file mode 100644 index 0000000..775d5e4 --- /dev/null +++ b/CarShowroom/CarShowroomDataModels/SearchModel/ModelSearch.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomDataModels.SearchModel +{ + public class ModelSearch + { + public int? Id; + } +} diff --git a/CarShowroom/CarShowroomDataModels/SearchModel/SaleSearch.cs b/CarShowroom/CarShowroomDataModels/SearchModel/SaleSearch.cs new file mode 100644 index 0000000..2db6799 --- /dev/null +++ b/CarShowroom/CarShowroomDataModels/SearchModel/SaleSearch.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomDataModels.SearchModel +{ + public class SaleSearch + { + public int? Id; + } +} diff --git a/CarShowroom/CarShowroomDataModels/SearchModel/ServiceSearch.cs b/CarShowroom/CarShowroomDataModels/SearchModel/ServiceSearch.cs new file mode 100644 index 0000000..f6a6879 --- /dev/null +++ b/CarShowroom/CarShowroomDataModels/SearchModel/ServiceSearch.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarShowroomDataModels.SearchModel +{ + public class ServiceSearch + { + public int? Id; + } +} diff --git a/CarShowroom/CarShowroomDataModels/Views/CarView.cs b/CarShowroom/CarShowroomDataModels/Views/CarView.cs index d827811..91bee92 100644 --- a/CarShowroom/CarShowroomDataModels/Views/CarView.cs +++ b/CarShowroom/CarShowroomDataModels/Views/CarView.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace CarShowroomContracts.Views +namespace CarShowroomDataModels.Views { public class CarView : ICar { diff --git a/CarShowroom/CarShowroomDataModels/Views/ClientView.cs b/CarShowroom/CarShowroomDataModels/Views/ClientView.cs index 45eba04..a9af84c 100644 --- a/CarShowroom/CarShowroomDataModels/Views/ClientView.cs +++ b/CarShowroom/CarShowroomDataModels/Views/ClientView.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace CarShowroomContracts.Views +namespace CarShowroomDataModels.Views { public class ClientView : IClient { diff --git a/CarShowroom/CarShowroomDataModels/Views/EmployeeView.cs b/CarShowroom/CarShowroomDataModels/Views/EmployeeView.cs index 62c5da7..a0eeb82 100644 --- a/CarShowroom/CarShowroomDataModels/Views/EmployeeView.cs +++ b/CarShowroom/CarShowroomDataModels/Views/EmployeeView.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace CarShowroomContracts.Views +namespace CarShowroomDataModels.Views { public class EmployeeView : IEmployee { diff --git a/CarShowroom/CarShowroomDataModels/Views/MakeView.cs b/CarShowroom/CarShowroomDataModels/Views/MakeView.cs index 28258ae..71182b4 100644 --- a/CarShowroom/CarShowroomDataModels/Views/MakeView.cs +++ b/CarShowroom/CarShowroomDataModels/Views/MakeView.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace CarShowroomContracts.Views +namespace CarShowroomDataModels.Views { public class MakeView : IMake { diff --git a/CarShowroom/CarShowroomDataModels/Views/ModelView.cs b/CarShowroom/CarShowroomDataModels/Views/ModelView.cs index ca00972..98f5a6b 100644 --- a/CarShowroom/CarShowroomDataModels/Views/ModelView.cs +++ b/CarShowroom/CarShowroomDataModels/Views/ModelView.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace CarShowroomContracts.Views +namespace CarShowroomDataModels.Views { public class ModelView : IModel { diff --git a/CarShowroom/CarShowroomDataModels/Views/ServiceView.cs b/CarShowroom/CarShowroomDataModels/Views/ServiceView.cs index b3e312c..f6371de 100644 --- a/CarShowroom/CarShowroomDataModels/Views/ServiceView.cs +++ b/CarShowroom/CarShowroomDataModels/Views/ServiceView.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace CarShowroomContracts.Views +namespace CarShowroomDataModels.Views { public class ServiceView : IService { diff --git a/CarShowroom/CarShowroomDatabaseStorage/Entities/Car.cs b/CarShowroom/CarShowroomDatabaseStorage/Entities/Car.cs index 60da6b4..46bd081 100644 --- a/CarShowroom/CarShowroomDatabaseStorage/Entities/Car.cs +++ b/CarShowroom/CarShowroomDatabaseStorage/Entities/Car.cs @@ -1,5 +1,5 @@ using CarShowroomContracts.AbstractModels; -using CarShowroomContracts.Views; +using CarShowroomDataModels.Views; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/CarShowroom/CarShowroomDatabaseStorage/Entities/Client.cs b/CarShowroom/CarShowroomDatabaseStorage/Entities/Client.cs index db3dcfd..75536d0 100644 --- a/CarShowroom/CarShowroomDatabaseStorage/Entities/Client.cs +++ b/CarShowroom/CarShowroomDatabaseStorage/Entities/Client.cs @@ -1,5 +1,5 @@ using CarShowroomContracts.AbstractModels; -using CarShowroomContracts.Views; +using CarShowroomDataModels.Views; using CarShowroomDataModels.Models; using Microsoft.EntityFrameworkCore; using System; diff --git a/CarShowroom/CarShowroomDatabaseStorage/Entities/Employee.cs b/CarShowroom/CarShowroomDatabaseStorage/Entities/Employee.cs index 1eb0760..0ad9736 100644 --- a/CarShowroom/CarShowroomDatabaseStorage/Entities/Employee.cs +++ b/CarShowroom/CarShowroomDatabaseStorage/Entities/Employee.cs @@ -1,4 +1,4 @@ -using CarShowroomContracts.Views; +using CarShowroomDataModels.Views; using CarShowroomDataModels.Models; using Microsoft.EntityFrameworkCore; using System; diff --git a/CarShowroom/CarShowroomDatabaseStorage/Entities/Make.cs b/CarShowroom/CarShowroomDatabaseStorage/Entities/Make.cs index f9a3abb..76d175e 100644 --- a/CarShowroom/CarShowroomDatabaseStorage/Entities/Make.cs +++ b/CarShowroom/CarShowroomDatabaseStorage/Entities/Make.cs @@ -1,5 +1,5 @@ using CarShowroomContracts.AbstractModels; -using CarShowroomContracts.Views; +using CarShowroomDataModels.Views; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; diff --git a/CarShowroom/CarShowroomDatabaseStorage/Entities/Model.cs b/CarShowroom/CarShowroomDatabaseStorage/Entities/Model.cs index adcf50f..2c3834a 100644 --- a/CarShowroom/CarShowroomDatabaseStorage/Entities/Model.cs +++ b/CarShowroom/CarShowroomDatabaseStorage/Entities/Model.cs @@ -1,5 +1,5 @@ using CarShowroomContracts.AbstractModels; -using CarShowroomContracts.Views; +using CarShowroomDataModels.Views; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; diff --git a/CarShowroom/CarShowroomDatabaseStorage/Entities/Sale.cs b/CarShowroom/CarShowroomDatabaseStorage/Entities/Sale.cs index 0a7798d..34ea46a 100644 --- a/CarShowroom/CarShowroomDatabaseStorage/Entities/Sale.cs +++ b/CarShowroom/CarShowroomDatabaseStorage/Entities/Sale.cs @@ -1,5 +1,4 @@ using CarShowroomContracts.AbstractModels; -using CarShowroomContracts.Views; using CarShowroomDataModels.Views; using System; using System.Collections.Generic; diff --git a/CarShowroom/CarShowroomDatabaseStorage/Entities/Service.cs b/CarShowroom/CarShowroomDatabaseStorage/Entities/Service.cs index 6b16842..b4aee0c 100644 --- a/CarShowroom/CarShowroomDatabaseStorage/Entities/Service.cs +++ b/CarShowroom/CarShowroomDatabaseStorage/Entities/Service.cs @@ -1,5 +1,5 @@ using CarShowroomContracts.AbstractModels; -using CarShowroomContracts.Views; +using CarShowroomDataModels.Views; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic;