исправление ошибки #3

Merged
Kate merged 1 commits from lab_3 into Lab_4 2023-04-18 13:13:10 +04:00

View File

@ -16,9 +16,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;
}