title: C# MVC Model Data Group on Razor View
body: <p>I'm having a bit of an issue on how to handle a model with duplicate data where I want to display each entry in a single table row in the view.</p>
  
  <p>e.g.</p>
  
  <p>The Model data looks like:</p>
  
  <pre><code>User | Access  
  1234 | SuperUser  
  1234 | Admin  
  2345 | Analyst  
  3456 | Analyst  
  3456 | SuperUser  
  </code></pre>
  
  <p>I pass through the model to my view but looping over each user in the model gives multiple entries per user, is there a way to use GroupBy to display each user on a single row, like the following:  </p>
  
  <pre><code>User | Access  
  1234 | SuperUser, Admin  
  2345 | Analyst  
  3456 | Analyst, SuperUser  
  </code></pre>