title: Select distinct categories from database
body: <p>I am designing the back end of an app and I want to get distinct categories from the database.I am using the following query:</p>
  
  <pre><code>var categories = from source in vm.Sources select source.Source_Category.ToList().Distinct();
  </code></pre>
  
  <p>And my model has four fields namely (Source_Name,Source_Link,Source_Subscribed,Source_Category)</p>
  
  <p>The model contains 4 entries in total,two belong to category "News" and other two belong to "Science".But using the above query I'm getting all four entries,Ideally it should return only two items.Where am I going wrong?</p>