поиск названия изделия для фильтрованного списка заказов
This commit is contained in:
parent
c58f9e230a
commit
58fb2e9e43
@ -36,7 +36,10 @@ namespace BlacksmithWorkshopListImplement.Implements
|
||||
{
|
||||
if (model.Id.HasValue && order.Id == model.Id)
|
||||
{
|
||||
result.Add(order.GetViewModel);
|
||||
OrderViewModel vm = order.GetViewModel;
|
||||
var manufacture = _source.Manufactures.Find(x => x.Id == order.ManufactureId);
|
||||
vm.ManufactureName = manufacture?.ManufactureName ?? string.Empty;
|
||||
result.Add(vm);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user