From 106d50af77618e1c280b585afec0a78ccc30f782 Mon Sep 17 00:00:00 2001 From: Ivan_Starostin Date: Wed, 1 May 2024 14:29:17 +0400 Subject: [PATCH] Upload files to 'STOContracts/StorageContracts' --- .../StorageContracts/ICarPartStorage.cs | 21 ++++++++++++++++++ STOContracts/StorageContracts/ICarStorage.cs | 21 ++++++++++++++++++ .../StorageContracts/IClientStorage.cs | 22 +++++++++++++++++++ .../StorageContracts/IServiceStorage.cs | 21 ++++++++++++++++++ .../StorageContracts/ITechnicalWorkStorage.cs | 16 ++++++++++++++ 5 files changed, 101 insertions(+) create mode 100644 STOContracts/StorageContracts/ICarPartStorage.cs create mode 100644 STOContracts/StorageContracts/ICarStorage.cs create mode 100644 STOContracts/StorageContracts/IClientStorage.cs create mode 100644 STOContracts/StorageContracts/IServiceStorage.cs create mode 100644 STOContracts/StorageContracts/ITechnicalWorkStorage.cs diff --git a/STOContracts/StorageContracts/ICarPartStorage.cs b/STOContracts/StorageContracts/ICarPartStorage.cs new file mode 100644 index 0000000..be8eabe --- /dev/null +++ b/STOContracts/StorageContracts/ICarPartStorage.cs @@ -0,0 +1,21 @@ +using STOContracts.BindingModels; +using STOContracts.SearchModels; +using STOContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace STOContracts.StorageContracts +{ + public interface ICarPartStorage + { + List GetFullList(); + List GetFilteredList(CarPartSearchModel model); + CarPartViewModel? GetElement(CarPartSearchModel model); + CarPartViewModel? Insert(CarPartBindingModel model); + CarPartViewModel? Update(CarPartBindingModel model); + CarPartViewModel? Delete(CarPartBindingModel model); + } +} diff --git a/STOContracts/StorageContracts/ICarStorage.cs b/STOContracts/StorageContracts/ICarStorage.cs new file mode 100644 index 0000000..58226a3 --- /dev/null +++ b/STOContracts/StorageContracts/ICarStorage.cs @@ -0,0 +1,21 @@ +using STOContracts.BindingModels; +using STOContracts.SearchModels; +using STOContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace STOContracts.StorageContracts +{ + 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/STOContracts/StorageContracts/IClientStorage.cs b/STOContracts/StorageContracts/IClientStorage.cs new file mode 100644 index 0000000..7902e33 --- /dev/null +++ b/STOContracts/StorageContracts/IClientStorage.cs @@ -0,0 +1,22 @@ +using STOContracts.BindingModels; +using STOContracts.SearchModels; +using STOContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace STOContracts.StorageContracts +{ + public interface IClientStorage + { + List GetFullList(); + List GetFilteredList(ClientSearchModel model); + ClientViewModel? GetElement(ClientSearchModel model); + ClientViewModel? Insert(ClientBindingModel model); + ClientViewModel? Update(ClientBindingModel model); + ClientViewModel? Delete(ClientBindingModel model); + } +} + diff --git a/STOContracts/StorageContracts/IServiceStorage.cs b/STOContracts/StorageContracts/IServiceStorage.cs new file mode 100644 index 0000000..489b15a --- /dev/null +++ b/STOContracts/StorageContracts/IServiceStorage.cs @@ -0,0 +1,21 @@ +using STOContracts.BindingModels; +using STOContracts.SearchModels; +using STOContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace STOContracts.StorageContracts +{ + public interface IServiceStorage + { + List GetFullList(); + List GetFilteredList(ServiceSearchModel model); + ServiceViewModel? GetElement(ServiceSearchModel model); + ServiceViewModel? Insert(ServiceBindingModel model); + ServiceViewModel? Update(ServiceBindingModel model); + ServiceViewModel? Delete(ServiceBindingModel model); + } +} diff --git a/STOContracts/StorageContracts/ITechnicalWorkStorage.cs b/STOContracts/StorageContracts/ITechnicalWorkStorage.cs new file mode 100644 index 0000000..276a2d0 --- /dev/null +++ b/STOContracts/StorageContracts/ITechnicalWorkStorage.cs @@ -0,0 +1,16 @@ +using STOContracts.BindingModels; +using STOContracts.SearchModels; +using STOContracts.ViewModels; + +namespace STOContracts.StoragesContracts +{ + public interface ITechnicalWorkStorage + { + List GetFullList(); + List GetFilteredList(TechnicalWorkSearchModel model); + TechnicalWorkViewModel? GetElement(TechnicalWorkSearchModel model); + TechnicalWorkViewModel? Insert(TechnicalWorkBindingModel model); + TechnicalWorkViewModel? Update(TechnicalWorkBindingModel model); + TechnicalWorkViewModel? Delete(TechnicalWorkBindingModel model); + } +} \ No newline at end of file