ClientStoragesContracts

This commit is contained in:
shadowik 2023-04-01 09:48:43 +04:00
parent 0a5becfb32
commit 37f5586e4b
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 ICardStorage
{
List<CardViewModel> GetFullList();
List<CardViewModel> GetFilteredList(CardSearchModel model);
CardViewModel? GetElement(CardSearchModel model);
CardViewModel? Insert(CardBindingModel model);
CardViewModel? Update(CardBindingModel model);
CardViewModel? Delete(CardBindingModel 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 IClientStorage
{
List<ClientViewModel> GetFullList();
List<ClientViewModel> GetFilteredList(ClientSearchModel model);
ClientViewModel? GetElement(ClientSearchModel model);
ClientViewModel? Insert(ClientBindingModel model);
ClientViewModel? Update(ClientBindingModel model);
ClientViewModel? Delete(ClientBindingModel 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 IDebitingStorage
{
List<DebitingViewModel> GetFullList();
List<DebitingViewModel> GetFilteredList(DebitingSearchModel model);
DebitingViewModel? GetElement(DebitingSearchModel model);
DebitingViewModel? Insert(DebitingBindingModel model);
DebitingViewModel? Update(DebitingBindingModel model);
DebitingViewModel? Delete(DebitingBindingModel 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 ICreditingStorage
{
List<CreditingViewModel> GetFullList();
List<CreditingViewModel> GetFilteredList(CreditingSearchModel model);
CreditingViewModel? GetElement(CreditingSearchModel model);
CreditingViewModel? Insert(CreditingBindingModel model);
CreditingViewModel? Update(CreditingBindingModel model);
CreditingViewModel? Delete(CreditingBindingModel model);
}
}