PR Conflict LabWork05 #6

Merged
Zhelovanov_Dmitrii merged 3 commits from LabWork04 into LabWork05 2023-05-17 12:03:41 +04:00
Showing only changes of commit c1df34a0ee - Show all commits

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