ClientBuisnessLogicsContracts

This commit is contained in:
shadowik 2023-04-01 09:37:08 +04:00
parent 62ccbc49f4
commit 898e45f6a5
7 changed files with 116 additions and 2 deletions

View File

@ -7,7 +7,6 @@
</PropertyGroup>
<ItemGroup>
<Folder Include="BusinessLogicsContacts\" />
<Folder Include="StoragesContracts\" />
</ItemGroup>

View File

@ -0,0 +1,24 @@
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.BusinessLogicsContracts
{
public interface IClientLogic
{
List<ClientViewModel>? ReadList(ClientSearchModel? model);
ClientViewModel? ReadElement(ClientSearchModel model);
bool Create(ClientBindingModel model);
bool Update(ClientBindingModel model);
bool Delete(ClientBindingModel model);
}
}

View File

@ -0,0 +1,24 @@
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.BusinessLogicsContracts
{
public interface ICardLogic
{
List<CardViewModel>? ReadList(CardSearchModel? model);
CardViewModel? ReadElement(CardSearchModel model);
bool Create(CardBindingModel model);
bool Update(CardBindingModel model);
bool Delete(CardBindingModel model);
}
}

View File

@ -0,0 +1,24 @@
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.BusinessLogicsContracts
{
public interface ICreditingLogic
{
List<CreditingViewModel>? ReadList(CreditingSearchModel? model);
CreditingViewModel? ReadElement(CreditingSearchModel model);
bool Create(CreditingBindingModel model);
bool Update(CreditingBindingModel model);
bool Delete(CreditingBindingModel model);
}
}

View File

@ -0,0 +1,24 @@
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.BusinessLogicsContracts
{
public interface IDebitingLogic
{
List<DebitingViewModel>? ReadList(DebitingSearchModel? model);
DebitingViewModel? ReadElement(DebitingSearchModel model);
bool Create(DebitingBindingModel model);
bool Update(DebitingBindingModel model);
bool Delete(DebitingBindingModel model);
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankYouBankruptContracts.SearchModels
{
public class CreditingSearchModel
{
public int? Id { get; set; }
public int? CardId { get; set; }
public int? Sum { get; set; }
public DateTime? date { get; set; }
}
}

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace BankYouBankruptContracts.ViewModels
{
public class ClientBindingModel : IСlientModel
public class ClientViewModel : IСlientModel
{
public int Id { get; set; }
public string Password { get; set; } = string.Empty;