diff --git a/Francesco.Recipes.World/Views/Shared/_GetInstructions.cshtml b/Francesco.Recipes.World/Views/Shared/_GetInstructions.cshtml index 5884c07..5fa2a58 100644 --- a/Francesco.Recipes.World/Views/Shared/_GetInstructions.cshtml +++ b/Francesco.Recipes.World/Views/Shared/_GetInstructions.cshtml @@ -28,7 +28,7 @@ } }); - const recipeId = '@ViewData["RecipeId"]'; + const recipeId = '@Model.RecipeId'; async function moveInstructionUp(instructionId) { try {