Example #1
0
 private string GetTotalWorkouts(Exercise exercise)
 {
     return(Workouts.Count(x => x.ExerciseId == exercise.ExerciseId).ToString());
 }
Example #2
0
 public int PageCount()
 {
     return(Convert.ToInt32(Math.Ceiling(Workouts.Count() / (double)WorkoutPerPage)));
 }