From 53b15762f47c1b0de3ba761bdd15465db923d160 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:53:07 +0400 Subject: [PATCH] StoragesContracts --- .../CarCenterContracts.csproj | 4 ++-- .../StoragesContracts/IBundlingStorage.cs | 21 +++++++++++++++++++ .../StoragesContracts/ICarStorage.cs | 21 +++++++++++++++++++ .../StoragesContracts/IFeatureStorage.cs | 21 +++++++++++++++++++ .../StoragesContracts/IStorekeeperStorage.cs | 21 +++++++++++++++++++ 5 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 CarCenter/CarCenterContracts/StoragesContracts/IBundlingStorage.cs create mode 100644 CarCenter/CarCenterContracts/StoragesContracts/ICarStorage.cs create mode 100644 CarCenter/CarCenterContracts/StoragesContracts/IFeatureStorage.cs create mode 100644 CarCenter/CarCenterContracts/StoragesContracts/IStorekeeperStorage.cs diff --git a/CarCenter/CarCenterContracts/CarCenterContracts.csproj b/CarCenter/CarCenterContracts/CarCenterContracts.csproj index 9dac0c0..8b0c520 100644 --- a/CarCenter/CarCenterContracts/CarCenterContracts.csproj +++ b/CarCenter/CarCenterContracts/CarCenterContracts.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/CarCenter/CarCenterContracts/StoragesContracts/IBundlingStorage.cs b/CarCenter/CarCenterContracts/StoragesContracts/IBundlingStorage.cs new file mode 100644 index 0000000..a35b1e3 --- /dev/null +++ b/CarCenter/CarCenterContracts/StoragesContracts/IBundlingStorage.cs @@ -0,0 +1,21 @@ +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.StoragesContracts +{ + public interface IBundlingStorage + { + List GetFullList(); + List GetFilteredList(BundlingSearchModel model); + BundlingViewModel? GetElement(BundlingSearchModel model); + BundlingViewModel? Insert(BundlingBindingModel model); + BundlingViewModel? Update(BundlingBindingModel model); + BundlingViewModel? Delete(BundlingBindingModel model); + } +} diff --git a/CarCenter/CarCenterContracts/StoragesContracts/ICarStorage.cs b/CarCenter/CarCenterContracts/StoragesContracts/ICarStorage.cs new file mode 100644 index 0000000..b6b4e3c --- /dev/null +++ b/CarCenter/CarCenterContracts/StoragesContracts/ICarStorage.cs @@ -0,0 +1,21 @@ +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.StoragesContracts +{ + public interface ICarStorage + { + List GetFullList(); + List GetFilteredList(CarSearchModel model); + CarViewModel? GetElement(CarSearchModel model); + CarViewModel? Insert(CarBindingModel model); + CarViewModel? Update(CarBindingModel model); + CarViewModel? Delete(CarBindingModel model); + } +} diff --git a/CarCenter/CarCenterContracts/StoragesContracts/IFeatureStorage.cs b/CarCenter/CarCenterContracts/StoragesContracts/IFeatureStorage.cs new file mode 100644 index 0000000..cb47276 --- /dev/null +++ b/CarCenter/CarCenterContracts/StoragesContracts/IFeatureStorage.cs @@ -0,0 +1,21 @@ +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.StoragesContracts +{ + public interface IFeatureStorage + { + List GetFullList(); + List GetFilteredList(FeatureSearchModel model); + FeatureViewModel? GetElement(FeatureSearchModel model); + FeatureViewModel? Insert(FeatureBindingModel model); + FeatureViewModel? Update(FeatureBindingModel model); + FeatureViewModel? Delete(FeatureBindingModel model); + } +} diff --git a/CarCenter/CarCenterContracts/StoragesContracts/IStorekeeperStorage.cs b/CarCenter/CarCenterContracts/StoragesContracts/IStorekeeperStorage.cs new file mode 100644 index 0000000..59548d7 --- /dev/null +++ b/CarCenter/CarCenterContracts/StoragesContracts/IStorekeeperStorage.cs @@ -0,0 +1,21 @@ +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.StoragesContracts +{ + public interface IStorekeeperStorage + { + List GetFullList(); + List GetFilteredList(StorekeeperSearchModel model); + StorekeeperViewModel? GetElement(StorekeeperSearchModel model); + StorekeeperViewModel? Insert(StorekeeperBindingModel model); + StorekeeperViewModel? Update(StorekeeperBindingModel model); + StorekeeperViewModel? Delete(StorekeeperBindingModel model); + } +}