public WorkoutEvent GetNextRace()
 {
     return(AllRuns.Where(r => r.Date > DateTime.Now).OrderBy(r => r.Date).FirstOrDefault());
 }
 public WorkoutEvent GetNextMarathon()
 {
     return(AllRuns.Where(r => r.Date > DateTime.Now && r.Distance.ToMiles(r.Unit.Name) > 26).OrderBy(r => r.Date).FirstOrDefault());
 }
 public IEnumerable <WorkoutEvent> GetPastRuns()
 {
     return(AllRuns.Where(r => r.Date.Date <= DateTime.Now.Date));
 }