From 37f5586e4b91881122e4a7b66867f087b0957307 Mon Sep 17 00:00:00 2001 From: shadowik Date: Sat, 1 Apr 2023 09:48:43 +0400 Subject: [PATCH] ClientStoragesContracts --- .../BankYouBankruptContracts.csproj | 4 --- .../StoragesContracts/ICardStorage.cs | 26 +++++++++++++++++++ .../StoragesContracts/IClientStorage.cs | 26 +++++++++++++++++++ .../StoragesContracts/ICreditingStorage.cs | 26 +++++++++++++++++++ .../StoragesContracts/IDebitingStorage.cs | 26 +++++++++++++++++++ 5 files changed, 104 insertions(+), 4 deletions(-) create mode 100644 BankYouBankrupt/BankYouBankruptContracts/StoragesContracts/ICardStorage.cs create mode 100644 BankYouBankrupt/BankYouBankruptContracts/StoragesContracts/IClientStorage.cs create mode 100644 BankYouBankrupt/BankYouBankruptContracts/StoragesContracts/ICreditingStorage.cs create mode 100644 BankYouBankrupt/BankYouBankruptContracts/StoragesContracts/IDebitingStorage.cs diff --git a/BankYouBankrupt/BankYouBankruptContracts/BankYouBankruptContracts.csproj b/BankYouBankrupt/BankYouBankruptContracts/BankYouBankruptContracts.csproj index 628377e..e2e4bae 100644 --- a/BankYouBankrupt/BankYouBankruptContracts/BankYouBankruptContracts.csproj +++ b/BankYouBankrupt/BankYouBankruptContracts/BankYouBankruptContracts.csproj @@ -6,10 +6,6 @@ enable - - - - diff --git a/BankYouBankrupt/BankYouBankruptContracts/StoragesContracts/ICardStorage.cs b/BankYouBankrupt/BankYouBankruptContracts/StoragesContracts/ICardStorage.cs new file mode 100644 index 0000000..1d53ad5 --- /dev/null +++ b/BankYouBankrupt/BankYouBankruptContracts/StoragesContracts/ICardStorage.cs @@ -0,0 +1,26 @@ +using BankYouBankruptContracts.BindingModels; +using BankYouBankruptContracts.SearchModels; +using BankYouBankruptContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankYouBankruptContracts.StoragesContracts +{ + public interface ICardStorage + { + List GetFullList(); + + List GetFilteredList(CardSearchModel model); + + CardViewModel? GetElement(CardSearchModel model); + + CardViewModel? Insert(CardBindingModel model); + + CardViewModel? Update(CardBindingModel model); + + CardViewModel? Delete(CardBindingModel model); + } +} \ No newline at end of file diff --git a/BankYouBankrupt/BankYouBankruptContracts/StoragesContracts/IClientStorage.cs b/BankYouBankrupt/BankYouBankruptContracts/StoragesContracts/IClientStorage.cs new file mode 100644 index 0000000..3b2083a --- /dev/null +++ b/BankYouBankrupt/BankYouBankruptContracts/StoragesContracts/IClientStorage.cs @@ -0,0 +1,26 @@ +using BankYouBankruptContracts.BindingModels; +using BankYouBankruptContracts.SearchModels; +using BankYouBankruptContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankYouBankruptContracts.StoragesContracts +{ + 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/BankYouBankrupt/BankYouBankruptContracts/StoragesContracts/ICreditingStorage.cs b/BankYouBankrupt/BankYouBankruptContracts/StoragesContracts/ICreditingStorage.cs new file mode 100644 index 0000000..bd7cea9 --- /dev/null +++ b/BankYouBankrupt/BankYouBankruptContracts/StoragesContracts/ICreditingStorage.cs @@ -0,0 +1,26 @@ +using BankYouBankruptContracts.BindingModels; +using BankYouBankruptContracts.SearchModels; +using BankYouBankruptContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankYouBankruptContracts.StoragesContracts +{ + public interface IDebitingStorage + { + List GetFullList(); + + List GetFilteredList(DebitingSearchModel model); + + DebitingViewModel? GetElement(DebitingSearchModel model); + + DebitingViewModel? Insert(DebitingBindingModel model); + + DebitingViewModel? Update(DebitingBindingModel model); + + DebitingViewModel? Delete(DebitingBindingModel model); + } +} \ No newline at end of file diff --git a/BankYouBankrupt/BankYouBankruptContracts/StoragesContracts/IDebitingStorage.cs b/BankYouBankrupt/BankYouBankruptContracts/StoragesContracts/IDebitingStorage.cs new file mode 100644 index 0000000..306b8a4 --- /dev/null +++ b/BankYouBankrupt/BankYouBankruptContracts/StoragesContracts/IDebitingStorage.cs @@ -0,0 +1,26 @@ +using BankYouBankruptContracts.BindingModels; +using BankYouBankruptContracts.SearchModels; +using BankYouBankruptContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankYouBankruptContracts.StoragesContracts +{ + public interface ICreditingStorage + { + List GetFullList(); + + List GetFilteredList(CreditingSearchModel model); + + CreditingViewModel? GetElement(CreditingSearchModel model); + + CreditingViewModel? Insert(CreditingBindingModel model); + + CreditingViewModel? Update(CreditingBindingModel model); + + CreditingViewModel? Delete(CreditingBindingModel model); + } +} \ No newline at end of file