diff --git a/ComputersShop/ComputersShopDatabaseImplement/Implements/OrderStorage.cs b/ComputersShop/ComputersShopDatabaseImplement/Implements/OrderStorage.cs index 35551be..2e7dc3a 100644 --- a/ComputersShop/ComputersShopDatabaseImplement/Implements/OrderStorage.cs +++ b/ComputersShop/ComputersShopDatabaseImplement/Implements/OrderStorage.cs @@ -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; }