public DateTime GetMinimumExerciseHistoryDate() { return(ExerciseHistories.Where(eh => eh.QuantityNotified > 0).OrderBy(eh => eh.RecordedDate).FirstOrDefault()?.RecordedDate ?? DateTime.Now.Date); }
public List <ExerciseHistory> GetExerciseHistoryForDay(DateTime date) { return(ExerciseHistories.Where(eh => eh.RecordedDate == date && eh.QuantityNotified > 0).OrderBy(eh => eh.ExerciseName).ToList()); }