diff --git a/BankYouBankrupt/BankYouBankruptContracts/BankYouBankruptContracts.csproj b/BankYouBankrupt/BankYouBankruptContracts/BankYouBankruptContracts.csproj index 0ee1958..aae7352 100644 --- a/BankYouBankrupt/BankYouBankruptContracts/BankYouBankruptContracts.csproj +++ b/BankYouBankrupt/BankYouBankruptContracts/BankYouBankruptContracts.csproj @@ -7,7 +7,6 @@ - diff --git a/BankYouBankrupt/BankYouBankruptContracts/BindingModels/Accound.cs b/BankYouBankrupt/BankYouBankruptContracts/BindingModels/Accound.cs new file mode 100644 index 0000000..4274a28 --- /dev/null +++ b/BankYouBankrupt/BankYouBankruptContracts/BindingModels/Accound.cs @@ -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; + } +} diff --git a/BankYouBankrupt/BankYouBankruptContracts/BindingModels/MoneyTransfer.cs b/BankYouBankrupt/BankYouBankruptContracts/BindingModels/MoneyTransfer.cs new file mode 100644 index 0000000..fcd89b8 --- /dev/null +++ b/BankYouBankrupt/BankYouBankruptContracts/BindingModels/MoneyTransfer.cs @@ -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; + } +} diff --git a/BankYouBankrupt/BankYouBankruptDataModels/Models/IAccountModel.cs b/BankYouBankrupt/BankYouBankruptDataModels/Models/IAccountModel.cs index fbad206..355e0f4 100644 --- a/BankYouBankrupt/BankYouBankruptDataModels/Models/IAccountModel.cs +++ b/BankYouBankrupt/BankYouBankruptDataModels/Models/IAccountModel.cs @@ -6,6 +6,7 @@ using System.Threading.Tasks; namespace BankYouBankruptDataModels.Models { + //банковский счёт public interface IAccountModel : IId { int CashierId { get; } diff --git a/BankYouBankrupt/BankYouBankruptDataModels/Models/ICashWithdrawal.cs b/BankYouBankrupt/BankYouBankruptDataModels/Models/ICashWithdrawal.cs index 52acbb6..63d5771 100644 --- a/BankYouBankrupt/BankYouBankruptDataModels/Models/ICashWithdrawal.cs +++ b/BankYouBankrupt/BankYouBankruptDataModels/Models/ICashWithdrawal.cs @@ -6,6 +6,7 @@ using System.Threading.Tasks; namespace BankYouBankruptDataModels.Models { + //выдача наличных public interface ICashWithdrawal : IId { int AccountId { get; } diff --git a/BankYouBankrupt/BankYouBankruptDataModels/Models/ICashierModel.cs b/BankYouBankrupt/BankYouBankruptDataModels/Models/ICashierModel.cs index 99bee4b..f4266db 100644 --- a/BankYouBankrupt/BankYouBankruptDataModels/Models/ICashierModel.cs +++ b/BankYouBankrupt/BankYouBankruptDataModels/Models/ICashierModel.cs @@ -6,6 +6,7 @@ using System.Threading.Tasks; namespace BankYouBankruptDataModels.Models { + //клиент public interface ICashierModel : IId { string Password { get; } diff --git a/BankYouBankrupt/BankYouBankruptDataModels/Models/ICreditingModel.cs b/BankYouBankrupt/BankYouBankruptDataModels/Models/ICreditingModel.cs index 3c933c3..fb0f4f1 100644 --- a/BankYouBankrupt/BankYouBankruptDataModels/Models/ICreditingModel.cs +++ b/BankYouBankrupt/BankYouBankruptDataModels/Models/ICreditingModel.cs @@ -6,6 +6,7 @@ using System.Threading.Tasks; namespace BankYouBankruptDataModels.Models { + //пополнение карты public interface ICreditingModel : IId { int CardId { get; } diff --git a/BankYouBankrupt/BankYouBankruptDataModels/Models/IDebitingModel.cs b/BankYouBankrupt/BankYouBankruptDataModels/Models/IDebitingModel.cs index ef635c0..d67a9e3 100644 --- a/BankYouBankrupt/BankYouBankruptDataModels/Models/IDebitingModel.cs +++ b/BankYouBankrupt/BankYouBankruptDataModels/Models/IDebitingModel.cs @@ -6,6 +6,7 @@ using System.Threading.Tasks; namespace BankYouBankruptDataModels.Models { + //снятие денег с карты public interface IDebitingModel : IId { int CardId { get; } diff --git a/BankYouBankrupt/BankYouBankruptDataModels/Models/IMoneyTransferModel.cs b/BankYouBankrupt/BankYouBankruptDataModels/Models/IMoneyTransferModel.cs index 9d45f2f..eef2f7f 100644 --- a/BankYouBankrupt/BankYouBankruptDataModels/Models/IMoneyTransferModel.cs +++ b/BankYouBankrupt/BankYouBankruptDataModels/Models/IMoneyTransferModel.cs @@ -6,6 +6,7 @@ using System.Threading.Tasks; namespace BankYouBankruptDataModels.Models { + //перевод денег public interface IMoneyTransferModel : IId { int Sum { get; } diff --git a/BankYouBankrupt/BankYouBankruptDataModels/Models/IСardModel.cs b/BankYouBankrupt/BankYouBankruptDataModels/Models/IСardModel.cs index 62d430d..2ccb874 100644 --- a/BankYouBankrupt/BankYouBankruptDataModels/Models/IСardModel.cs +++ b/BankYouBankrupt/BankYouBankruptDataModels/Models/IСardModel.cs @@ -6,6 +6,7 @@ using System.Threading.Tasks; namespace BankYouBankruptDataModels.Models { + //банковская карта public interface ICardModel : IId { int ClientID { get; } diff --git a/BankYouBankrupt/BankYouBankruptDataModels/Models/IСlientModel.cs b/BankYouBankrupt/BankYouBankruptDataModels/Models/IСlientModel.cs index 95b644e..81d9463 100644 --- a/BankYouBankrupt/BankYouBankruptDataModels/Models/IСlientModel.cs +++ b/BankYouBankrupt/BankYouBankruptDataModels/Models/IСlientModel.cs @@ -6,6 +6,7 @@ using System.Threading.Tasks; namespace BankYouBankruptDataModels.Models { + //клиент public interface IСlientModel : IId { string Password { get; }