From 8d402477421e5d6354415df75f3c333993b79201 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Wed, 8 Sep 2021 15:48:06 +1000 Subject: [PATCH] 7.5.1.4 Displaying the Page Links; Listing 7-23 Calling the HTML Helper Method in the List.cshtml File --- SportsStore/SportsStore.WebUI/Views/Product/List.cshtml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SportsStore/SportsStore.WebUI/Views/Product/List.cshtml b/SportsStore/SportsStore.WebUI/Views/Product/List.cshtml index af3e49e..ba40d59 100644 --- a/SportsStore/SportsStore.WebUI/Views/Product/List.cshtml +++ b/SportsStore/SportsStore.WebUI/Views/Product/List.cshtml @@ -13,3 +13,7 @@

@p.Price.ToString("c")

} + +
+ @Html.PageLinks(Model.PagingInfo, x => Url.Action("List", new { page = x})) +
\ No newline at end of file