Промежуточная фиксация.

This commit is contained in:
Programmist73 2023-04-01 21:34:22 +04:00
parent 68f3a8eb51
commit 9c73e7129d

View File

@ -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)
};
}