Added "Tomorrow" view for the upcoming episodes page so it was separate from the weekly forecast.

This commit is contained in:
Mark McDowall 2011-04-27 16:51:38 -07:00
commit de003b9774
3 changed files with 52 additions and 2 deletions

View file

@ -39,10 +39,15 @@ namespace NzbDrone.Core.Providers
return _repository.All<Episode>().Where(e => e.AirDate == DateTime.Today).ToList();
}
public virtual List<Episode> Tomorrow()
{
return _repository.All<Episode>().Where(e => e.AirDate == DateTime.Today.AddDays(1)).ToList();
}
public virtual List<Episode> Week()
{
return
_repository.All<Episode>().Where(e => e.AirDate > DateTime.Today && e.AirDate < DateTime.Today.AddDays(8))
_repository.All<Episode>().Where(e => e.AirDate > DateTime.Today.AddDays(1) && e.AirDate < DateTime.Today.AddDays(8))
.ToList();
}
}