Изменил(а) на 'BlacksmithWorkshop/BlacksmithWorkshopListImplement/Implements/OrderStorage.cs'

This commit is contained in:
Zhelovanov_Dmitrii 2023-05-17 12:02:48 +04:00
parent c44bd13c85
commit c1df34a0ee

View File

@ -59,7 +59,7 @@ namespace BlacksmithWorkshopListImplement.Implements
foreach (var order in _source.Orders)
{
if (order.Id == model.Id || model.DateFrom <= order.DateCreate && order.DateCreate <= model.DateTo)
if (order.Id == model.Id || model.DateFrom <= order.DateCreate && order.DateCreate <= model.DateTo || order.ClientId == model.ClientId)
{
result.Add(order.GetViewModel);
}
@ -119,7 +119,16 @@ namespace BlacksmithWorkshopListImplement.Implements
orderViewModel.ManufactureName = manufacture.ManufactureName;
}
}
return orderViewModel;
foreach (var client in _source.Clients)
{
if (client.Id == order.ClientId)
{
orderViewModel.ClientFIO = client.ClientFIO;
}
}
return orderViewModel;
}
}
}