Compare commits
No commits in common. "1ac54c8db8558dc76c7fe7448bb04fdfc9e2a228" and "851b151d03ec93e25345294631d4de3aba24ba50" have entirely different histories.
1ac54c8db8
...
851b151d03
@ -86,10 +86,13 @@ namespace LawFirmFileImplement.Implements
|
||||
private OrderViewModel GetViewModel(Order order)
|
||||
{
|
||||
var viewModel = order.GetViewModel;
|
||||
var document = source.Documents.FirstOrDefault(x => x.Id == order.DocumentId);
|
||||
if (document != null)
|
||||
foreach (var document in source.Documents)
|
||||
{
|
||||
viewModel.DocumentName = document.DocumentName;
|
||||
if (document.Id == order.DocumentId)
|
||||
{
|
||||
viewModel.DocumentName = document.DocumentName;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return viewModel;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user