Borschevskaya A.A. Lab work 4 #6

Closed
pgirl1 wants to merge 17 commits from lab4_base into lab3_base
Showing only changes of commit ed2b86c876 - Show all commits

View File

@ -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;
}
}
}