page --> pageNumber in dynamic linq snippet (#12308)

pull/12314/head
Tom Dykstra 2019-05-06 15:32:12 -07:00 committed by GitHub
parent ec9776e093
commit f13d94aff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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<Student>.CreateAsync(students.AsNoTracking(),
page ?? 1, pageSize));
pageNumber ?? 1, pageSize));
}
#endregion
#endif