From 1b89c7c86e0dfc927d39f30e157bd750a0776b33 Mon Sep 17 00:00:00 2001 From: Daymian Tomczyk Date: Sat, 17 Aug 2019 16:33:05 -0400 Subject: [PATCH] Update page.md (#13888) --- aspnetcore/tutorials/razor-pages/page.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/tutorials/razor-pages/page.md b/aspnetcore/tutorials/razor-pages/page.md index 7b8588a6b3..add1b979df 100644 --- a/aspnetcore/tutorials/razor-pages/page.md +++ b/aspnetcore/tutorials/razor-pages/page.md @@ -23,7 +23,7 @@ Examine the *Pages/Movies/Index.cshtml.cs* Page Model: [!code-csharp[](razor-pages-start/snapshot_sample3/RazorPagesMovie30/Pages/Movies/Index.cshtml.cs)] -Razor Pages are derived from `PageModel`. By convention, the `PageModel`-derived class is called `Model`. The constructor uses [dependency injection](xref:fundamentals/dependency-injection) to add the `RazorPagesMovieContext` to the page. All the scaffolded pages follow this pattern. See [Asynchronous code](xref:data/ef-rp/intro#asynchronous-code) for more information on asynchronous programing with Entity Framework. +Razor Pages are derived from `PageModel`. By convention, the `PageModel`-derived class is called `Model`. The constructor uses [dependency injection](xref:fundamentals/dependency-injection) to add the `RazorPagesMovieContext` to the page. All the scaffolded pages follow this pattern. See [Asynchronous code](xref:data/ef-rp/intro#asynchronous-code) for more information on asynchronous programming with Entity Framework. When a request is made for the page, the `OnGetAsync` method returns a list of movies to the Razor Page. `OnGetAsync` or `OnGet` is called on a Razor Page to initialize the state for the page. In this case, `OnGetAsync` gets a list of movies and displays them. @@ -368,4 +368,4 @@ The [Input Tag Helper](xref:mvc/views/working-with-forms) (`