title: What is the best way to persist filters, paging, sorting in .NET Core MVC
body: <p>I am developing a .NET Core MVC application. For my CRUD operations, I have a basic Index.cshtml, Edit.cshtml and Create.cshtml page. In my Index.cshtml, I am able to sort, filter, page. I add this information to the query string, e.g.</p>
  <pre><code>https://localhost:5001/admin/myPage?search=my+search+string&amp;page=3
  </code></pre>
  <p>Now, when I edit a row, I jump to another page. In the edit page, it might be possible, I would need to jump further to other pages. At the end, when I come back to my Index.cshtml page, I want to have my original filter applied.</p>
  <p>I know I can pass the query string keys and values back and forth from page to page, but this looks rather complex to me.</p>
  <p>What is the best way to implement this?</p>