title: To pass model parameter using pagination in ASP.Net Core
body: <p>I am using the PagedList to work on a table for my ASP.Net Core application. I need to pass the model to the controller on change of a page, however it's not being sent.</p>
  
  <p>The pagination section of the code in the view is </p>
  
  <pre><code>&lt;pager class="pager" list="@Model.UserList" asp-action="Index" asp-controller="User" asp-route-model ="@Model" param-page-number="page" options="@PagedListRenderOptions.ClassicPlusFirstAndLast" /&gt;
  </code></pre>
  
  <p>And my controller signature is :</p>
  
  <pre><code>public ActionResult Index(UsersModel model, int? page)
  {
  }
  </code></pre>
  
  <p>The model is always null and does not contain any of the model values. How do I fix it?</p>