Skip to content

Commit

Permalink
Highlight modified line (dotnet#4165)
Browse files Browse the repository at this point in the history
  • Loading branch information
badersur authored and scottaddie committed Aug 31, 2017
1 parent d7e0df3 commit 605dc99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aspnetcore/data/ef-mvc/update-related-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

Expand Down

0 comments on commit 605dc99

Please sign in to comment.