public ActionResult <RecipeStepDto> GetRecipeStep(int recipeId, int id) { if (!_homeBrewRepository.RecipeExists(recipeId)) { return(NotFound()); } var recipeStep = _homeBrewRepository.GetRecipeStep(id); if (recipeStep == null) { return(NotFound()); } return(Ok(_mapper.Map <RecipeStepDto>(recipeStep))); }