diff --git a/aspnetcore/data/ef-mvc/update-related-data.md b/aspnetcore/data/ef-mvc/update-related-data.md index fa51bd112c4a..248aadabc92d 100644 --- a/aspnetcore/data/ef-mvc/update-related-data.md +++ b/aspnetcore/data/ef-mvc/update-related-data.md @@ -187,7 +187,7 @@ The code in the `PopulateAssignedCourseData` method reads through all Course ent Next, add the code that's executed when the user clicks **Save**. Replace the `EditPost` method with the following code, and add a new method that updates the `Courses` navigation property of the Instructor entity. -[!code-csharp[Main](intro/samples/cu/Controllers/InstructorsController.cs?highlight=3,12,13,25,39-40&name=snippet_EditPostCourses)] +[!code-csharp[Main](intro/samples/cu/Controllers/InstructorsController.cs?highlight=1,3,12,13,25,39-40&name=snippet_EditPostCourses)] [!code-csharp[Main](intro/samples/cu/Controllers/InstructorsController.cs?name=snippet_UpdateCourses&highlight=1-31)]