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