我在我的应用程序中使用Html.PagedListPager扩展名进行分页。我想将整数数组传递给此方法。以下是我的代码
@Html.PagedListPager(
Model.NewListProjectModel, page => Url.Action(
"PartialProjectListing",
new { page, Model.SearchModel.Sectors }
), PagedList.Mvc.PagedListRenderOptions.EnableUnobtrusiveAjaxReplacing(
new AjaxOptions() {
HttpMethod = "GET",
UpdateTargetId = "PartialListingProjects",
OnSuccess = "$.moveToTop('#PartialListingProjects>div')"
}
)
)