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:
Kate 2023-04-18 13:13:10 +04:00
commit 430b73b572

View File

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