Merge pull request 'исправление ошибки' (#3) from lab_3 into Lab_4
Reviewed-on: http://student.git.athene.tech/Kate/ISEbd-21_Vasina_E.S._ComputersShop/pulls/3
This commit is contained in:
commit
430b73b572
@ -17,9 +17,9 @@ namespace ComputersShopDatabaseImplement.Implements
|
||||
.ToList();
|
||||
foreach (var order in orderList)
|
||||
{
|
||||
string manufactureName = context.Computers
|
||||
string computerName = context.Computers
|
||||
.SingleOrDefault(x => x.Id == order.ComputerId)?.ComputerName ?? string.Empty;
|
||||
order.ComputerName = manufactureName;
|
||||
order.ComputerName = computerName;
|
||||
}
|
||||
return orderList;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user