diff --git a/BankYouBankrupt/BankYouBankruptContracts/BankYouBankruptContracts.csproj b/BankYouBankrupt/BankYouBankruptContracts/BankYouBankruptContracts.csproj index aae7352..69d6220 100644 --- a/BankYouBankrupt/BankYouBankruptContracts/BankYouBankruptContracts.csproj +++ b/BankYouBankrupt/BankYouBankruptContracts/BankYouBankruptContracts.csproj @@ -10,7 +10,6 @@ - diff --git a/BankYouBankrupt/BankYouBankruptContracts/ViewModels/CardViewModel.cs b/BankYouBankrupt/BankYouBankruptContracts/ViewModels/CardViewModel.cs new file mode 100644 index 0000000..c17e391 --- /dev/null +++ b/BankYouBankrupt/BankYouBankruptContracts/ViewModels/CardViewModel.cs @@ -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; + } +} diff --git a/BankYouBankrupt/BankYouBankruptContracts/ViewModels/ClientViewModel.cs b/BankYouBankrupt/BankYouBankruptContracts/ViewModels/ClientViewModel.cs new file mode 100644 index 0000000..149dd10 --- /dev/null +++ b/BankYouBankrupt/BankYouBankruptContracts/ViewModels/ClientViewModel.cs @@ -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; + } +} diff --git a/BankYouBankrupt/BankYouBankruptContracts/ViewModels/CreditingViewModel.cs b/BankYouBankrupt/BankYouBankruptContracts/ViewModels/CreditingViewModel.cs new file mode 100644 index 0000000..55c05d3 --- /dev/null +++ b/BankYouBankrupt/BankYouBankruptContracts/ViewModels/CreditingViewModel.cs @@ -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; + } +} diff --git a/BankYouBankrupt/BankYouBankruptContracts/ViewModels/DebitingViewModel .cs b/BankYouBankrupt/BankYouBankruptContracts/ViewModels/DebitingViewModel .cs new file mode 100644 index 0000000..e58e0fd --- /dev/null +++ b/BankYouBankrupt/BankYouBankruptContracts/ViewModels/DebitingViewModel .cs @@ -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; + } +}