Compare commits

...

2 Commits

View File

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