public async Task <ActionResult <ExerciseModel> > GetExercise(int id) { var exerciseModel = new ExerciseModel(await _exerciseRepository.GetById(id)); if (exerciseModel == null) { return(NotFound()); } return(exerciseModel); }