예제 #1
0
        public async Task <ActionResult <ExerciseModel> > GetExercise(int id)
        {
            var exerciseModel = new ExerciseModel(await _exerciseRepository.GetById(id));

            if (exerciseModel == null)
            {
                return(NotFound());
            }

            return(exerciseModel);
        }