Мелкие правки.

This commit is contained in:
Programmist73 2023-02-24 12:27:33 +04:00
parent d11fc9960b
commit f83986aa7b

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;