ClientBuisnessLogicsContracts
This commit is contained in:
parent
62ccbc49f4
commit
898e45f6a5
@ -7,7 +7,6 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="BusinessLogicsContacts\" />
|
|
||||||
<Folder Include="StoragesContracts\" />
|
<Folder Include="StoragesContracts\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
@ -8,7 +8,7 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace BankYouBankruptContracts.ViewModels
|
namespace BankYouBankruptContracts.ViewModels
|
||||||
{
|
{
|
||||||
public class ClientBindingModel : IСlientModel
|
public class ClientViewModel : IСlientModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public string Password { get; set; } = string.Empty;
|
public string Password { get; set; } = string.Empty;
|
||||||
|
Loading…
Reference in New Issue
Block a user