Промежуточная фиксация.
This commit is contained in:
parent
68f3a8eb51
commit
9c73e7129d
@ -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)
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user