Исправление

This commit is contained in:
prodigygirl 2023-03-25 11:02:32 +04:00
parent cff8261723
commit 57510cd655

View File

@ -88,15 +88,5 @@ namespace FurnitureAssemblyDatabaseImplement.Implements
} }
return null; 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;
}
} }
} }