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