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