Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

CI-203 adding logic to filter providers that appear in the CSV #4

Merged
merged 4 commits into from
Apr 11, 2017

Conversation

scottcowan
Copy link
Contributor

removing the date from the CSV and removing providers that are inactive by date

return false;
}

if (StartDate?.Date <= currenDate.Date && currenDate.Date <= EndDate)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If StartDate is null and you return false previously we don't need the ? here. currentDate?

@@ -31,7 +32,7 @@ public ActionResult Csv()
{
try
{
var providers = _getProviders.GetAllProviders();
var providers = _getProviders.GetAllProviders().Where(x => x.IsDateValid(DateTime.Now));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use UtcNow?

@scottcowan scottcowan merged commit b75c4b1 into master Apr 11, 2017
@scottcowan scottcowan deleted the feature/CI-203_remove_dates_in_csv branch April 11, 2017 14:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants