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