Eliseev E.E. LabWork02_Hard #7

Closed
ElEgEv wants to merge 23 commits from LabWork02_Hard into LabWork01_Hard
Showing only changes of commit f83986aa7b - Show all commits

View File

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