add BusinessLogicContracts and StoragesContracts

This commit is contained in:
Zakharov_Rostislav 2024-04-26 00:44:35 +04:00
parent fe8a5d954d
commit f61c928d1b
9 changed files with 164 additions and 1 deletions

View File

@ -14,7 +14,6 @@
<ItemGroup>
<ProjectReference Include="..\BankDataModels\BankDataModels.csproj" />
<Folder Include="StoragesContracts\" />
</ItemGroup>
<ItemGroup>

View 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);
}
}

View 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);
}
}

View 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);
}
}

View 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 IWithdrawalLogic
{
List<WithdrawalViewModel>? ReadList(WithdrawalSearchModel? model);
WithdrawalViewModel? ReadElement(WithdrawalSearchModel model);
bool Create(WithdrawalBindingModel model);
bool Update(WithdrawalBindingModel model);
bool Delete(WithdrawalBindingModel model);
}
}

View 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);
}
}

View 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);
}
}

View 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);
}
}

View 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);
}
}