Исправление
This commit is contained in:
parent
cff8261723
commit
57510cd655
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user