title: Filter model based on checked checkboxes
body: <p>I have a simple EntityFramework model that I'm trying to filter by using checkboxes.</p>
  
  <p>My model contains 2 properties:</p>
  
  <pre><code>public class Company
  {        
      public string Name { get; set; }
  
      public string Location { get; set; }
  }
  </code></pre>
  
  <p>What I'd like to do is to:</p>
  
  <ol>
  <li>Show an index view of all the companies in the database</li>
  <li>Show a list of checkboxes corresponding to each of the distinct locations of the companies</li>
  <li>Allow a user to select one or more of the checkboxes and submit the form to redisplay the index with the filter to locations applied.</li>
  </ol>
  
  <p>I'm not sure how best to approach this - I think I need a viewmodel of my Companies and locations, but I'm not sure how to display the list of checkboxes and then filter by them.</p>