I can't use the following namespace PagedList
to use razor
@model PagedList.IPagedList<PhoneBook.Models.Contact>
in the topmost of view Index.cshtml
I already installed PagedList and i used already the code below in my Controller
using PagedList;
there's no error in the controller page but why ican't use the namespace in Index.cshtml (View)? Please help..
BuildStarted referral or existing on at the same time use,
in controller
using PagedList;
using PagedList.Mvc;
and use in view
@model PagedList.IPagedList<PhoneBook.Models.Contact>
@using PagedList;
@using PagedList.Mvc;
and use paging
@Html.PagedListPager(Model, page => Url.Action("Index", new { page =
page }))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With