From 9c73e7129d39a77f669222ec8a20658d6a906694 Mon Sep 17 00:00:00 2001 From: Programmist73 Date: Sat, 1 Apr 2023 21:34:22 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=BC=D0=B5=D0=B6=D1=83?= =?UTF-8?q?=D1=82=D0=BE=D1=87=D0=BD=D0=B0=D1=8F=20=D1=84=D0=B8=D0=BA=D1=81?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Models/MoneyTransfer.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BankYouBankrupt/BankYouBankruptDatabaseImplement/Models/MoneyTransfer.cs b/BankYouBankrupt/BankYouBankruptDatabaseImplement/Models/MoneyTransfer.cs index 51c8766..9c8930d 100644 --- a/BankYouBankrupt/BankYouBankruptDatabaseImplement/Models/MoneyTransfer.cs +++ b/BankYouBankrupt/BankYouBankruptDatabaseImplement/Models/MoneyTransfer.cs @@ -22,13 +22,13 @@ namespace BankYouBankruptDatabaseImplement.Models public int AccountSenderId { get; set; } //для передачи номера счёта отправителя - public virtual Account AccountSenderNumber { get; set; } + //public virtual Account AccountSender { get; set; } [Required] public int AccountPayeeId { get; set; } //для передачи номера счёта получателя - public virtual Account AccountPayeeNumber { get; set; } + //public virtual Account AccountPayee { get; set; } [Required] public DateTime DateOperation { get; set; } @@ -42,8 +42,8 @@ namespace BankYouBankruptDatabaseImplement.Models AccountSenderId = model.AccountSenderId, AccountPayeeId = model.AccountPayeeId, DateOperation = model.DateOperation, - AccountSenderNumber = context.Accounts.First(x => x.Id == model.AccountSenderId), - AccountPayeeNumber = context.Accounts.First(x => x.Id == model.AccountPayeeId) + //AccountSender = context.Accounts.First(x => x.Id == model.AccountSenderId), + //AccountPayee = context.Accounts.First(x => x.Id == model.AccountPayeeId) }; }