This commit is contained in:
shadowik 2023-04-01 08:24:58 +04:00
commit bef12f27e5
10 changed files with 54 additions and 0 deletions

View File

@ -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 Accound : IAccountModel
{
public int Id { get; set; }
public int CashierId { get; set; }
public int ClientId { get; set; }
public string PasswordAccount { get; set; } = string.Empty;
public double Balance { get; set; }
public DateTime DateOpen { get; set; } = DateTime.Now;
}
}

View File

@ -0,0 +1,22 @@
using BankYouBankruptDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankYouBankruptContracts.BindingModels
{
public class MoneyTransfer : IMoneyTransferModel
{
public int Id { get; set; }
public int Sum { get; set; }
public int AccountSenderId { get; set; }
public int AccountPayeeId { get; set; }
public DateTime DateOperation { get; set; } = DateTime.Now;
}
}

View File

@ -6,6 +6,7 @@ using System.Threading.Tasks;
namespace BankYouBankruptDataModels.Models namespace BankYouBankruptDataModels.Models
{ {
//банковский счёт
public interface IAccountModel : IId public interface IAccountModel : IId
{ {
int CashierId { get; } int CashierId { get; }

View File

@ -6,6 +6,7 @@ using System.Threading.Tasks;
namespace BankYouBankruptDataModels.Models namespace BankYouBankruptDataModels.Models
{ {
//выдача наличных
public interface ICashWithdrawal : IId public interface ICashWithdrawal : IId
{ {
int AccountId { get; } int AccountId { get; }

View File

@ -6,6 +6,7 @@ using System.Threading.Tasks;
namespace BankYouBankruptDataModels.Models namespace BankYouBankruptDataModels.Models
{ {
//клиент
public interface ICashierModel : IId public interface ICashierModel : IId
{ {
string Password { get; } string Password { get; }

View File

@ -6,6 +6,7 @@ using System.Threading.Tasks;
namespace BankYouBankruptDataModels.Models namespace BankYouBankruptDataModels.Models
{ {
//пополнение карты
public interface ICreditingModel : IId public interface ICreditingModel : IId
{ {
int CardId { get; } int CardId { get; }

View File

@ -6,6 +6,7 @@ using System.Threading.Tasks;
namespace BankYouBankruptDataModels.Models namespace BankYouBankruptDataModels.Models
{ {
//снятие денег с карты
public interface IDebitingModel : IId public interface IDebitingModel : IId
{ {
int CardId { get; } int CardId { get; }

View File

@ -6,6 +6,7 @@ using System.Threading.Tasks;
namespace BankYouBankruptDataModels.Models namespace BankYouBankruptDataModels.Models
{ {
//перевод денег
public interface IMoneyTransferModel : IId public interface IMoneyTransferModel : IId
{ {
int Sum { get; } int Sum { get; }

View File

@ -6,6 +6,7 @@ using System.Threading.Tasks;
namespace BankYouBankruptDataModels.Models namespace BankYouBankruptDataModels.Models
{ {
//банковская карта
public interface ICardModel : IId public interface ICardModel : IId
{ {
int ClientID { get; } int ClientID { get; }

View File

@ -6,6 +6,7 @@ using System.Threading.Tasks;
namespace BankYouBankruptDataModels.Models namespace BankYouBankruptDataModels.Models
{ {
//клиент
public interface IСlientModel : IId public interface IСlientModel : IId
{ {
string Password { get; } string Password { get; }