ClientViewModels

This commit is contained in:
shadowik 2023-04-01 08:52:03 +04:00
parent 682253ad3c
commit fb7acd1dec
5 changed files with 113 additions and 1 deletions

View File

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

View File

@ -0,0 +1,30 @@
using BankYouBankruptDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PizzeriaContracts.ViewModels
{
public class CardViewModel : ICardModel
{
public int Id { get; set; }
public int ClientID { get; set; }
[DisplayName("Фамилия клиента")]
public string? ClientSurname { get; set; }
public int AccountId { get; set; }
[DisplayName("Номер карты")]
public string Number { get; set; } = string.Empty;
public string CVC { get; set; } = string.Empty;
[DisplayName("Период действия")]
public DateTime Period { get; set; } = DateTime.Now;
}
}

View File

@ -0,0 +1,31 @@
using BankYouBankruptDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankYouBankruptContracts.ViewModels
{
public class ClientBindingModel : IСlientModel
{
public int Id { get; set; }
public string Password { get; set; } = string.Empty;
[DisplayName("Имя")]
public string Name { get; set; } = string.Empty;
[DisplayName("Фамилия")]
public string Surname { get; set; } = string.Empty;
[DisplayName("Отчество")]
public string Patronymic { get; set; } = string.Empty;
[DisplayName("Почта")]
public string Email { get; set; } = string.Empty;
[DisplayName("Телефон")]
public string Telephone { get; set; } = string.Empty;
}
}

View File

@ -0,0 +1,26 @@
using BankYouBankruptDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PizzeriaContracts.ViewModels
{
public class CreditingViewModel : ICreditingModel
{
public int Id { get; set; }
public int CardId { get; set; }
[DisplayName("Номер карты")]
public string? CardNumber { get; set; }
[DisplayName("Сумма операции")]
public int Sum { get; set; }
[DisplayName("Дата операции")]
public DateTime date { get; set; } = DateTime.Now;
}
}

View File

@ -0,0 +1,26 @@
using BankYouBankruptDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PizzeriaContracts.ViewModels
{
public class DebitingViewModel : IDebitingModel
{
public int Id { get; set; }
public int CardId { get; set; }
[DisplayName("Номер карты")]
public string? CardNumber { get; set; }
[DisplayName("Сумма операции")]
public int Sum { get; set; }
[DisplayName("Дата операции")]
public DateTime date { get; set; } = DateTime.Now;
}
}