title: How to filter SelectList contents
body: <p>How to filter the SelectList so that I only get ClassifierElements where Classifier.Name == "CellTypes"? Is it even doable? Should I use a different kind of object like IEnumerable?</p>
  
  <p>In CellController:</p>
  
  <pre><code>ViewData["TypeId"] = new SelectList(_context.ClassifierElements, "Id", "Name");
  </code></pre>
  
  <p>Here are the objects: </p>
  
  <pre><code>public class Cell
  {
      public int Id { get; set; }
  
      public string Name { get; set; }
  
      public int TypeId { get; set; }
      public ClassifierElement Type { get; set; }
  
      public ICollection&lt;Component&gt; Components { get; set; }
  
      public ICollection&lt;Parameter&gt; Parameters { get; set; }
  }
  
  
  public class Classifier
  {
      public int Id { get; set; }
  
      public string Name { get; set; }
  
      public ICollection&lt;ClassifierElement&gt; ClassifierElements { get; set; }
  }
  
  public class ClassifierElement
  {
      public int Id { get; set; }
  
      public int ClassifierId { get; set; }
      public Classifier Classifier { get; set; }
  
      public string Name { get; set; }     
  }
  </code></pre>