Compare commits
No commits in common. "27bd7178b1e47789a48bb09ba09da945829abfac" and "7aa92dbb74177993780144be503b562cbdb1a484" have entirely different histories.
27bd7178b1
...
7aa92dbb74
@ -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)
|
||||
{
|
||||
if (document.Id == order.DocumentId)
|
||||
{
|
||||
viewModel.DocumentName = document.DocumentName;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return viewModel;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user