From f13d94aff570e9d5ffd71b8842cb793671fada03 Mon Sep 17 00:00:00 2001 From: Tom Dykstra Date: Mon, 6 May 2019 15:32:12 -0700 Subject: [PATCH] page --> pageNumber in dynamic linq snippet (#12308) --- .../intro/samples/cu/Controllers/StudentsController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aspnetcore/data/ef-mvc/intro/samples/cu/Controllers/StudentsController.cs b/aspnetcore/data/ef-mvc/intro/samples/cu/Controllers/StudentsController.cs index 180fec63e8..2e2db81480 100644 --- a/aspnetcore/data/ef-mvc/intro/samples/cu/Controllers/StudentsController.cs +++ b/aspnetcore/data/ef-mvc/intro/samples/cu/Controllers/StudentsController.cs @@ -149,7 +149,7 @@ namespace ContosoUniversity.Controllers string sortOrder, string currentFilter, string searchString, - int? page) + int? pageNumber) { ViewData["CurrentSort"] = sortOrder; ViewData["NameSortParm"] = @@ -159,7 +159,7 @@ namespace ContosoUniversity.Controllers if (searchString != null) { - page = 1; + pageNumber = 1; } else { @@ -200,7 +200,7 @@ namespace ContosoUniversity.Controllers int pageSize = 3; return View(await PaginatedList.CreateAsync(students.AsNoTracking(), - page ?? 1, pageSize)); + pageNumber ?? 1, pageSize)); } #endregion #endif