add BusinessLogicContracts and StoragesContracts
This commit is contained in:
parent
fe8a5d954d
commit
f61c928d1b
@ -14,7 +14,6 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\BankDataModels\BankDataModels.csproj" />
|
||||
<Folder Include="StoragesContracts\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
20
Bank/BankContracts/BusinessLogicsContracts/IAccountLogic.cs
Normal file
20
Bank/BankContracts/BusinessLogicsContracts/IAccountLogic.cs
Normal file
@ -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<AccountViewModel>? ReadList(AccountSearchModel? model);
|
||||
AccountViewModel? ReadElement(AccountSearchModel model);
|
||||
bool Create(AccountBindingModel model);
|
||||
bool Update(AccountBindingModel model);
|
||||
bool Delete(AccountBindingModel model);
|
||||
}
|
||||
}
|
20
Bank/BankContracts/BusinessLogicsContracts/IManagerLogic.cs
Normal file
20
Bank/BankContracts/BusinessLogicsContracts/IManagerLogic.cs
Normal file
@ -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<ManagerViewModel>? ReadList(ManagerSearchModel? model);
|
||||
ManagerViewModel? ReadElement(ManagerSearchModel model);
|
||||
bool Create(ManagerBindingModel model);
|
||||
bool Update(ManagerBindingModel model);
|
||||
bool Delete(ManagerBindingModel model);
|
||||
}
|
||||
}
|
20
Bank/BankContracts/BusinessLogicsContracts/ITransferLogic.cs
Normal file
20
Bank/BankContracts/BusinessLogicsContracts/ITransferLogic.cs
Normal file
@ -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<TransferViewModel>? ReadList(TransferSearchModel? model);
|
||||
TransferViewModel? ReadElement(TransferSearchModel model);
|
||||
bool Create(TransferBindingModel model);
|
||||
bool Update(TransferBindingModel model);
|
||||
bool Delete(TransferBindingModel model);
|
||||
}
|
||||
}
|
@ -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<WithdrawalViewModel>? ReadList(WithdrawalSearchModel? model);
|
||||
WithdrawalViewModel? ReadElement(WithdrawalSearchModel model);
|
||||
bool Create(WithdrawalBindingModel model);
|
||||
bool Update(WithdrawalBindingModel model);
|
||||
bool Delete(WithdrawalBindingModel model);
|
||||
}
|
||||
}
|
21
Bank/BankContracts/StoragesContracts/IAccountStorage.cs
Normal file
21
Bank/BankContracts/StoragesContracts/IAccountStorage.cs
Normal file
@ -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<AccountViewModel> GetFullList();
|
||||
List<AccountViewModel> GetFilteredList(AccountSearchModel model);
|
||||
AccountViewModel? GetElement(AccountSearchModel model);
|
||||
AccountViewModel? Insert(AccountBindingModel model);
|
||||
AccountViewModel? Update(AccountBindingModel model);
|
||||
AccountViewModel? Delete(AccountBindingModel model);
|
||||
}
|
||||
}
|
21
Bank/BankContracts/StoragesContracts/IManagerStorage.cs
Normal file
21
Bank/BankContracts/StoragesContracts/IManagerStorage.cs
Normal file
@ -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<ManagerViewModel> GetFullList();
|
||||
List<ManagerViewModel> GetFilteredList(ManagerSearchModel model);
|
||||
ManagerViewModel? GetElement(ManagerSearchModel model);
|
||||
ManagerViewModel? Insert(ManagerBindingModel model);
|
||||
ManagerViewModel? Update(ManagerBindingModel model);
|
||||
ManagerViewModel? Delete(ManagerBindingModel model);
|
||||
}
|
||||
}
|
21
Bank/BankContracts/StoragesContracts/ITransferStorage.cs
Normal file
21
Bank/BankContracts/StoragesContracts/ITransferStorage.cs
Normal file
@ -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<WithdrawalViewModel> GetFullList();
|
||||
List<WithdrawalViewModel> GetFilteredList(WithdrawalSearchModel model);
|
||||
WithdrawalViewModel? GetElement(WithdrawalSearchModel model);
|
||||
WithdrawalViewModel? Insert(WithdrawalBindingModel model);
|
||||
WithdrawalViewModel? Update(WithdrawalBindingModel model);
|
||||
WithdrawalViewModel? Delete(WithdrawalBindingModel model);
|
||||
}
|
||||
}
|
21
Bank/BankContracts/StoragesContracts/IWithdrawalStorage.cs
Normal file
21
Bank/BankContracts/StoragesContracts/IWithdrawalStorage.cs
Normal file
@ -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<WithdrawalViewModel> GetFullList();
|
||||
List<WithdrawalViewModel> GetFilteredList(WithdrawalSearchModel model);
|
||||
WithdrawalViewModel? GetElement(WithdrawalSearchModel model);
|
||||
WithdrawalViewModel? Insert(WithdrawalBindingModel model);
|
||||
WithdrawalViewModel? Update(WithdrawalBindingModel model);
|
||||
WithdrawalViewModel? Delete(WithdrawalBindingModel model);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user