ISEbd-21 Melnikov I. O. Lab work 01 Base #1

Closed
Igor-Melnikov wants to merge 13 commits from lab1 into main
Showing only changes of commit 58fb2e9e43 - Show all commits

View File

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