title: Passing value from view to controller by clicking an attribute
body: <p>I am trying to pass these values back to my controller for some basic paging and I am not sure why it is not getting them.</p>
  
  <p>Am I using asp-route incorrectly to pass them?</p>
  
  <p>View:</p>
  
  <pre><code>&lt;ul class="pager"&gt;
      &lt;li class="previous"&gt;&lt;a asp-action="Index" asp-route-prev="@Model.First().ID"&gt;Previous&lt;/a&gt;&lt;/li&gt;
      &lt;li class="next"&gt;&lt;a asp-action="Index" asp-route-next="@Model.Last().ID"&gt;Next&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt; 
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code> [HttpPost, ActionName("Index")]
          [ValidateAntiForgeryToken]
          public async Task&lt;IActionResult&gt; IndexPost(string certification, string category, string resource, int prev, int next)
  </code></pre>