From 053c142e4caeb28e564118bb9838ba612098fb24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=9C=D0=B0=D0=BB?= =?UTF-8?q?=D0=B0=D1=84=D0=B5=D0=B5=D0=B2?= Date: Sun, 28 Apr 2024 11:46:02 +0400 Subject: [PATCH] Logic interface --- .../BusinessLogicsContracts/IBundlingLogic.cs | 20 +++++++++++++++++++ .../BusinessLogicsContracts/ICarLogic.cs | 20 +++++++++++++++++++ .../BusinessLogicsContracts/IFeatureLogic.cs | 20 +++++++++++++++++++ .../IStorekeeperLogic.cs | 20 +++++++++++++++++++ .../CarCenterContracts.csproj | 3 +-- 5 files changed, 81 insertions(+), 2 deletions(-) create mode 100644 CarCenter/CarCenterContracts/BusinessLogicsContracts/IBundlingLogic.cs create mode 100644 CarCenter/CarCenterContracts/BusinessLogicsContracts/ICarLogic.cs create mode 100644 CarCenter/CarCenterContracts/BusinessLogicsContracts/IFeatureLogic.cs create mode 100644 CarCenter/CarCenterContracts/BusinessLogicsContracts/IStorekeeperLogic.cs diff --git a/CarCenter/CarCenterContracts/BusinessLogicsContracts/IBundlingLogic.cs b/CarCenter/CarCenterContracts/BusinessLogicsContracts/IBundlingLogic.cs new file mode 100644 index 0000000..5168a2f --- /dev/null +++ b/CarCenter/CarCenterContracts/BusinessLogicsContracts/IBundlingLogic.cs @@ -0,0 +1,20 @@ +using CarCenterContracts.BindingModels; +using CarCenterContracts.SearchModels; +using CarCenterContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarCenterContracts.BusinessLogicsContracts +{ + public interface IBundlingLogic + { + List? ReadList(BundlingSearchModel? model); + BundlingViewModel? ReadElement(BundlingSearchModel model); + bool Create(BundlingBindingModel model); + bool Update(BundlingBindingModel model); + bool Delete(BundlingBindingModel model); + } +} diff --git a/CarCenter/CarCenterContracts/BusinessLogicsContracts/ICarLogic.cs b/CarCenter/CarCenterContracts/BusinessLogicsContracts/ICarLogic.cs new file mode 100644 index 0000000..7e60cb3 --- /dev/null +++ b/CarCenter/CarCenterContracts/BusinessLogicsContracts/ICarLogic.cs @@ -0,0 +1,20 @@ +using CarCenterContracts.BindingModels; +using CarCenterContracts.SearchModels; +using CarCenterContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarCenterContracts.BusinessLogicsContracts +{ + public interface ICarLogic + { + List? ReadList(CarSearchModel? model); + CarViewModel? ReadElement(CarSearchModel model); + bool Create(CarBindingModel model); + bool Update(CarBindingModel model); + bool Delete(CarBindingModel model); + } +} diff --git a/CarCenter/CarCenterContracts/BusinessLogicsContracts/IFeatureLogic.cs b/CarCenter/CarCenterContracts/BusinessLogicsContracts/IFeatureLogic.cs new file mode 100644 index 0000000..e7c246a --- /dev/null +++ b/CarCenter/CarCenterContracts/BusinessLogicsContracts/IFeatureLogic.cs @@ -0,0 +1,20 @@ +using CarCenterContracts.BindingModels; +using CarCenterContracts.SearchModels; +using CarCenterContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarCenterContracts.BusinessLogicsContracts +{ + public interface IFeatureLogic + { + List? ReadList(FeatureSearchModel? model); + FeatureViewModel? ReadElement(FeatureSearchModel model); + bool Create(FeatureBindingModel model); + bool Update(FeatureBindingModel model); + bool Delete(FeatureBindingModel model); + } +} diff --git a/CarCenter/CarCenterContracts/BusinessLogicsContracts/IStorekeeperLogic.cs b/CarCenter/CarCenterContracts/BusinessLogicsContracts/IStorekeeperLogic.cs new file mode 100644 index 0000000..abcabce --- /dev/null +++ b/CarCenter/CarCenterContracts/BusinessLogicsContracts/IStorekeeperLogic.cs @@ -0,0 +1,20 @@ +using CarCenterContracts.BindingModels; +using CarCenterContracts.SearchModels; +using CarCenterContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarCenterContracts.BusinessLogicsContracts +{ + public interface IStorekeeperLogic + { + List? ReadList(StorekeeperSearchModel? model); + StorekeeperViewModel? ReadElement(StorekeeperSearchModel model); + bool Create(StorekeeperBindingModel model); + bool Update(StorekeeperBindingModel model); + bool Delete(StorekeeperBindingModel model); + } +} diff --git a/CarCenter/CarCenterContracts/CarCenterContracts.csproj b/CarCenter/CarCenterContracts/CarCenterContracts.csproj index 550335b..9dac0c0 100644 --- a/CarCenter/CarCenterContracts/CarCenterContracts.csproj +++ b/CarCenter/CarCenterContracts/CarCenterContracts.csproj @@ -7,8 +7,7 @@ - - + -- 2.25.1