Compare commits
2 Commits
851b151d03
...
1ac54c8db8
Author | SHA1 | Date | |
---|---|---|---|
1ac54c8db8 | |||
80460ececd |
@ -86,13 +86,10 @@ namespace LawFirmFileImplement.Implements
|
|||||||
private OrderViewModel GetViewModel(Order order)
|
private OrderViewModel GetViewModel(Order order)
|
||||||
{
|
{
|
||||||
var viewModel = order.GetViewModel;
|
var viewModel = order.GetViewModel;
|
||||||
foreach (var document in source.Documents)
|
var document = source.Documents.FirstOrDefault(x => x.Id == order.DocumentId);
|
||||||
|
if (document != null)
|
||||||
{
|
{
|
||||||
if (document.Id == order.DocumentId)
|
viewModel.DocumentName = document.DocumentName;
|
||||||
{
|
|
||||||
viewModel.DocumentName = document.DocumentName;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return viewModel;
|
return viewModel;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user