public TrainingExercise GetTrainingExercise(TrainingExerciseKey key) { var trainingExercise = _trainingExerciseModule.Get(key); if (trainingExercise != null) { CompleteTrainingExerciseWithSet(trainingExercise); } return(trainingExercise); }
public TrainingExercise GetTrainingExercise(TrainingExerciseKey key) { var trainingExercise = _trainingExerciseModule.Get(key); if (trainingExercise != null) { var criteria = CreateTrainingExerciseSetCriteria(trainingExercise); trainingExercise.TrainingExerciseSets = _trainingExerciseSetModule.Find(criteria); } return(trainingExercise); }