title: c# mvc 5 display model text from list based on id
body: <p>I have a model:</p>
  
  <pre><code>public class Model
  {
     public string Id { get; set }
     public List&lt;SelectListItem&gt; Items { get; set; }
  }
  </code></pre>
  
  <p>Now in my view I have:</p>
  
  <pre><code>@foreach (var item in Model)
  {
     @Html.DisplayFor(modelItem =&gt; item.Items.Where(t=&gt;t.Value ==  item.Id).Select(t=&gt;t.Text))
  }
  </code></pre>
  
  <p>Basically the Items property will have something like this:</p>
  
  <pre><code>Value = 1
  Text = "Somethnig"
  
  Value = 2
  Text = "Somethnig else"
  
  Value = 3
  Text = "Somethnig else in here"
  </code></pre>
  
  <p>The Id property will hold the Value of the item, which can be <code>1, 2, 3 and so forth</code>.</p>
  
  <p>How can I display in my view the Text of the item rather then the Value?</p>