Merge branch 'main' of http://student.git.athene.tech/shadowik/CourseWork_BankYouBankrupt
This commit is contained in:
commit
5e911a4181
@ -0,0 +1,24 @@
|
||||
using BankYouBankruptDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankYouBankruptContracts.BindingModels
|
||||
{
|
||||
public class CardBindingModel : ICardModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public int ClientID { get; set; }
|
||||
|
||||
public int AccountId { get; set; }
|
||||
|
||||
public string Number { get; set; } = string.Empty;
|
||||
|
||||
public string CVC { get; set; } = string.Empty;
|
||||
|
||||
public DateTime Period { get; set; } = DateTime.Now;
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using BankYouBankruptDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankYouBankruptContracts.BindingModels
|
||||
{
|
||||
public class CreditingBindingModel : ICreditingModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public int CardId { get; set; }
|
||||
|
||||
public int Sum { get; set; }
|
||||
|
||||
public DateTime date { get; set; } = DateTime.Now;
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using BankYouBankruptDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankYouBankruptContracts.BindingModels
|
||||
{
|
||||
public class DebitingBindingModel : IDebitingModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public int CardId { get; set; }
|
||||
|
||||
public int Sum { get; set; }
|
||||
|
||||
public DateTime date { get; set; } = DateTime.Now;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user