From fb400e9ab485b0066bd081d22cd66781221163e7 Mon Sep 17 00:00:00 2001 From: VictoriaPresnyakova Date: Sat, 15 Apr 2023 19:27:19 +0400 Subject: [PATCH] full --- JewelryStoreDatabaseImplement/Models/Order.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JewelryStoreDatabaseImplement/Models/Order.cs b/JewelryStoreDatabaseImplement/Models/Order.cs index bea39e4..0e297d5 100644 --- a/JewelryStoreDatabaseImplement/Models/Order.cs +++ b/JewelryStoreDatabaseImplement/Models/Order.cs @@ -88,7 +88,7 @@ namespace JewelryStoreDatabaseImplement.Models JewelId = JewelId, ClientId = ClientId, ClientFIO = context.Clients.FirstOrDefault(x => x.Id == ClientId)?.ClientFIO ?? string.Empty, - JewelName = JewelName, + JewelName = context.Jewels.FirstOrDefault(x => x.Id == JewelId)?.JewelName ?? string.Empty, Count = Count, Sum = Sum, Status = Status,