Мелкие правки.
This commit is contained in:
parent
d11fc9960b
commit
f83986aa7b
@ -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