diff --git a/Bank/BankContracts/BankContracts.csproj b/Bank/BankContracts/BankContracts.csproj index 88ca97c..ddaf3cb 100644 --- a/Bank/BankContracts/BankContracts.csproj +++ b/Bank/BankContracts/BankContracts.csproj @@ -14,7 +14,6 @@ - diff --git a/Bank/BankContracts/BusinessLogicsContracts/IAccountLogic.cs b/Bank/BankContracts/BusinessLogicsContracts/IAccountLogic.cs new file mode 100644 index 0000000..514d1fb --- /dev/null +++ b/Bank/BankContracts/BusinessLogicsContracts/IAccountLogic.cs @@ -0,0 +1,20 @@ +using BankContracts.BindingModels; +using BankContracts.SearchModels; +using BankContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankContracts.BusinessLogicsContracts +{ + public interface IAccountLogic + { + List? ReadList(AccountSearchModel? model); + AccountViewModel? ReadElement(AccountSearchModel model); + bool Create(AccountBindingModel model); + bool Update(AccountBindingModel model); + bool Delete(AccountBindingModel model); + } +} diff --git a/Bank/BankContracts/BusinessLogicsContracts/IManagerLogic.cs b/Bank/BankContracts/BusinessLogicsContracts/IManagerLogic.cs new file mode 100644 index 0000000..113789d --- /dev/null +++ b/Bank/BankContracts/BusinessLogicsContracts/IManagerLogic.cs @@ -0,0 +1,20 @@ +using BankContracts.BindingModels; +using BankContracts.SearchModels; +using BankContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankContracts.BusinessLogicsContracts +{ + public interface IManagerLogic + { + List? ReadList(ManagerSearchModel? model); + ManagerViewModel? ReadElement(ManagerSearchModel model); + bool Create(ManagerBindingModel model); + bool Update(ManagerBindingModel model); + bool Delete(ManagerBindingModel model); + } +} diff --git a/Bank/BankContracts/BusinessLogicsContracts/ITransferLogic.cs b/Bank/BankContracts/BusinessLogicsContracts/ITransferLogic.cs new file mode 100644 index 0000000..d6da3e8 --- /dev/null +++ b/Bank/BankContracts/BusinessLogicsContracts/ITransferLogic.cs @@ -0,0 +1,20 @@ +using BankContracts.BindingModels; +using BankContracts.SearchModels; +using BankContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankContracts.BusinessLogicsContracts +{ + public interface ITransferLogic + { + List? ReadList(TransferSearchModel? model); + TransferViewModel? ReadElement(TransferSearchModel model); + bool Create(TransferBindingModel model); + bool Update(TransferBindingModel model); + bool Delete(TransferBindingModel model); + } +} diff --git a/Bank/BankContracts/BusinessLogicsContracts/IWithdrawalLogic.cs b/Bank/BankContracts/BusinessLogicsContracts/IWithdrawalLogic.cs new file mode 100644 index 0000000..77b6ac9 --- /dev/null +++ b/Bank/BankContracts/BusinessLogicsContracts/IWithdrawalLogic.cs @@ -0,0 +1,20 @@ +using BankContracts.BindingModels; +using BankContracts.SearchModels; +using BankContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankContracts.BusinessLogicsContracts +{ + public interface IWithdrawalLogic + { + List? ReadList(WithdrawalSearchModel? model); + WithdrawalViewModel? ReadElement(WithdrawalSearchModel model); + bool Create(WithdrawalBindingModel model); + bool Update(WithdrawalBindingModel model); + bool Delete(WithdrawalBindingModel model); + } +} diff --git a/Bank/BankContracts/StoragesContracts/IAccountStorage.cs b/Bank/BankContracts/StoragesContracts/IAccountStorage.cs new file mode 100644 index 0000000..7a03c5a --- /dev/null +++ b/Bank/BankContracts/StoragesContracts/IAccountStorage.cs @@ -0,0 +1,21 @@ +using BankContracts.BindingModels; +using BankContracts.SearchModels; +using BankContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankContracts.StoragesContracts +{ + public interface IAccountStorage + { + List GetFullList(); + List GetFilteredList(AccountSearchModel model); + AccountViewModel? GetElement(AccountSearchModel model); + AccountViewModel? Insert(AccountBindingModel model); + AccountViewModel? Update(AccountBindingModel model); + AccountViewModel? Delete(AccountBindingModel model); + } +} diff --git a/Bank/BankContracts/StoragesContracts/IManagerStorage.cs b/Bank/BankContracts/StoragesContracts/IManagerStorage.cs new file mode 100644 index 0000000..0c10352 --- /dev/null +++ b/Bank/BankContracts/StoragesContracts/IManagerStorage.cs @@ -0,0 +1,21 @@ +using BankContracts.BindingModels; +using BankContracts.SearchModels; +using BankContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankContracts.StoragesContracts +{ + public interface IManagerStorage + { + List GetFullList(); + List GetFilteredList(ManagerSearchModel model); + ManagerViewModel? GetElement(ManagerSearchModel model); + ManagerViewModel? Insert(ManagerBindingModel model); + ManagerViewModel? Update(ManagerBindingModel model); + ManagerViewModel? Delete(ManagerBindingModel model); + } +} diff --git a/Bank/BankContracts/StoragesContracts/ITransferStorage.cs b/Bank/BankContracts/StoragesContracts/ITransferStorage.cs new file mode 100644 index 0000000..c1d329e --- /dev/null +++ b/Bank/BankContracts/StoragesContracts/ITransferStorage.cs @@ -0,0 +1,21 @@ +using BankContracts.BindingModels; +using BankContracts.SearchModels; +using BankContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankContracts.StoragesContracts +{ + public interface ITransferStorage + { + List GetFullList(); + List GetFilteredList(WithdrawalSearchModel model); + WithdrawalViewModel? GetElement(WithdrawalSearchModel model); + WithdrawalViewModel? Insert(WithdrawalBindingModel model); + WithdrawalViewModel? Update(WithdrawalBindingModel model); + WithdrawalViewModel? Delete(WithdrawalBindingModel model); + } +} diff --git a/Bank/BankContracts/StoragesContracts/IWithdrawalStorage.cs b/Bank/BankContracts/StoragesContracts/IWithdrawalStorage.cs new file mode 100644 index 0000000..515e32d --- /dev/null +++ b/Bank/BankContracts/StoragesContracts/IWithdrawalStorage.cs @@ -0,0 +1,21 @@ +using BankContracts.BindingModels; +using BankContracts.SearchModels; +using BankContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankContracts.StoragesContracts +{ + public interface IWithdrawalStorage + { + List GetFullList(); + List GetFilteredList(WithdrawalSearchModel model); + WithdrawalViewModel? GetElement(WithdrawalSearchModel model); + WithdrawalViewModel? Insert(WithdrawalBindingModel model); + WithdrawalViewModel? Update(WithdrawalBindingModel model); + WithdrawalViewModel? Delete(WithdrawalBindingModel model); + } +}