исправление ошибки
This commit is contained in:
parent
d30cd30aef
commit
022039bbb9
@ -16,9 +16,9 @@ namespace ComputersShopDatabaseImplement.Implements
|
|||||||
.ToList();
|
.ToList();
|
||||||
foreach (var order in orderList)
|
foreach (var order in orderList)
|
||||||
{
|
{
|
||||||
string manufactureName = context.Computers
|
string computerName = context.Computers
|
||||||
.SingleOrDefault(x => x.Id == order.ComputerId)?.ComputerName ?? string.Empty;
|
.SingleOrDefault(x => x.Id == order.ComputerId)?.ComputerName ?? string.Empty;
|
||||||
order.ComputerName = manufactureName;
|
order.ComputerName = computerName;
|
||||||
}
|
}
|
||||||
return orderList;
|
return orderList;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user