title: How to filter model data via query string params in asp.net mvc 4 ?
body: <p>I am creating a view which initially pulls/display all the records on the page and later there are filters(textbox and checkbox) on left where user can filter the results from.</p>
  
  <p>This is my first mvc app, so I have followed the below mentioned approach:</p>
  
  <pre><code> // GET: /Search/
          public ActionResult Home(int page = 1)
          {
  </code></pre>
  
  <p>SearchController have a Home method which is default and pushes the data to view to display in grid.
  Controls to filter the data is wrapped under:</p>
  
  <pre><code>@using (Html.BeginForm("Home", "Search", FormMethod.Post))
          {
  </code></pre>
  
  <p>for that I have </p>
  
  <pre><code>[HttpPost]
  public ActionResult Home(Partner partner)
  </code></pre>
  
  <p>My QUESTION is :</p>
  
  <p>a) The search needs to be a query string based so that users can share the filtered result so what we be the best way to filter the Model data (partner here) via QS, I know I can either pass the whole model to the ActionResult or I can accept each field name in the AcitionResult.</p>
  
  <p>b) How do you protect the QS params, the best practice ?</p>
  
  <p>Thanks a lot in advance.</p>