Добавление StoragesContracts для кассира.

This commit is contained in:
Programmist73 2023-04-01 13:52:32 +04:00
parent 674bd20372
commit 6d3437d81a
5 changed files with 104 additions and 4 deletions

View File

@ -6,10 +6,6 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Folder Include="StoragesContracts\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\BankYouBankruptDataModels\BankYouBankruptDataModels.csproj" />
</ItemGroup>

View File

@ -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 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,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 ICashWithdrawalStorage
{
List<CashWithdrawalViewModel> GetFullList();
List<CashWithdrawalViewModel> GetFilteredList(CashWithdrawalSearchModel model);
CashWithdrawalViewModel? GetElement(CashWithdrawalSearchModel model);
CashWithdrawalViewModel? Insert(CashWithdrawalBindingModel model);
CashWithdrawalViewModel? Update(CashWithdrawalBindingModel model);
CashWithdrawalViewModel? Delete(CashWithdrawalBindingModel model);
}
}

View File

@ -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 ICashierStorage
{
List<CashierViewModel> GetFullList();
List<CashierViewModel> GetFilteredList(CashierSearchModel model);
CashierViewModel? GetElement(CashierSearchModel model);
CashierViewModel? Insert(CashierBindingModel model);
CashierViewModel? Update(CashierBindingModel model);
CashierViewModel? Delete(CashierBindingModel model);
}
}

View File

@ -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 IMoneyTransferStorage
{
List<MoneyTransferViewModel> GetFullList();
List<MoneyTransferViewModel> GetFilteredList(MoneyTransferSearchModel model);
MoneyTransferViewModel? GetElement(MoneyTransferSearchModel model);
MoneyTransferViewModel? Insert(MoneyTransferBindingModel model);
MoneyTransferViewModel? Update(MoneyTransferBindingModel model);
MoneyTransferViewModel? Delete(MoneyTransferBindingModel model);
}
}