Eliseev E.E. LabWork02_Hard #7
@ -51,14 +51,11 @@ namespace BlacksmithWorkshopFileImplement.Implements
|
||||
{
|
||||
var viewModel = order.GetViewModel;
|
||||
|
||||
foreach(var manufacture in source.Manufactures)
|
||||
{
|
||||
if(manufacture.Id == order.ManufactureId)
|
||||
{
|
||||
viewModel.ManufactureName = manufacture.ManufactureName;
|
||||
var manufacture = source.Manufactures.FirstOrDefault(x => x.Id == order.ManufactureId);
|
||||
|
||||
break;
|
||||
}
|
||||
if(manufacture != null)
|
||||
{
|
||||
viewModel.ManufactureName = manufacture.ManufactureName;
|
||||
}
|
||||
|
||||
return viewModel;
|
||||
|
Loading…
Reference in New Issue
Block a user