예제 #1
0
 public ExerciseResponse(Exercise exercise)
 {
     Id          = exercise.Id;
     Name        = exercise.Name;
     Description = exercise.Description;
     BodyPart    = exercise.BodyPart;
     if (exercise.ExerciseEquipment != null)
     {
         ExerciseService exerciseService = new ExerciseService();
         ExerciseEquipment = exerciseService.GetExerciseEquipment(exercise.ExerciseEquipment.Id);
     }
 }