Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
CI-445 Fixing special scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseviAgullo committed Dec 5, 2017
1 parent 6384413 commit 2c19431
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ public FrameworkCodeSummary MapToFrameworkCodeSummaryFromList(List<FrameworkSumm

private DateTime? GetLatestDate(List<FrameworkSummary> documents)
{
if (documents.Any(x => x.EffectiveTo == null))
{
return null;
}

return documents.Max(item => item.EffectiveTo);
}

Expand All @@ -146,6 +151,11 @@ public FrameworkCodeSummary MapToFrameworkCodeSummaryFromList(List<FrameworkSumm

private DateTime? GetLatestDate(List<FrameworkSearchResultsItem> documents)
{
if (documents.Any(x => x.EffectiveTo == null))
{
return null;
}

return documents.Max(item => item.EffectiveTo);
}

Expand Down

0 comments on commit 2c19431

Please sign in to comment.