diff --git a/FurnitureAssembly/FurnitureAssemblyDatabaseImplement/Implements/OrderStorage.cs b/FurnitureAssembly/FurnitureAssemblyDatabaseImplement/Implements/OrderStorage.cs index 1a11bef..71a32e6 100644 --- a/FurnitureAssembly/FurnitureAssemblyDatabaseImplement/Implements/OrderStorage.cs +++ b/FurnitureAssembly/FurnitureAssemblyDatabaseImplement/Implements/OrderStorage.cs @@ -88,15 +88,5 @@ namespace FurnitureAssemblyDatabaseImplement.Implements } return null; } - - public OrderViewModel GetOrderViewModel(Order order) - { - var viewmodel = order.GetViewModel; - using var context = new FurnitureAssemblyDatabase(); - var furniture = context.Furnitures.FirstOrDefault(x => x.Id == order.FurnitureId); - if (furniture != null) - viewmodel.FurnitureName = furniture.FurnitureName; - return viewmodel; - } } }