From 5ec5c96d04bd7abf4c64251415fbfa8ab913307c Mon Sep 17 00:00:00 2001 From: Kirk Larkin <6025110+serpent5@users.noreply.github.com> Date: Tue, 14 Apr 2020 23:31:15 +0100 Subject: [PATCH] Remove [ViewData] example using @Model with a controller (#17805) --- aspnetcore/mvc/views/overview.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/aspnetcore/mvc/views/overview.md b/aspnetcore/mvc/views/overview.md index 572f278b7e..aac5b56958 100644 --- a/aspnetcore/mvc/views/overview.md +++ b/aspnetcore/mvc/views/overview.md @@ -266,12 +266,6 @@ public class HomeController : Controller } ``` -In the About view, access the `Title` property as a model property: - -```cshtml -

@Model.Title

-``` - In the layout, the title is read from the ViewData dictionary: ```cshtml