title: Linq return bool where a = val1 & b = val2 from model?
body: <p>I have 2 for loops and need to check if the model contains value based on current ones.</p>
  
  <pre><code>&lt;% for (int currentDay = 1; currentDay &lt;= 7; currentDay++)
         {  %&gt;
          &lt;%=Html.CheckBox("TimeRange" + currentDay.ToString())%&gt;
      &lt;%} %&gt;
  </code></pre>
  
  <p>Somehow I need to make the checkbox checked if the model contains data based on 2 parameters (i just put the first loop there)</p>
  
  <p>Kida like:</p>
  
  <pre><code>&lt;%= Html.CheckBox("TimeRange..", (bool)Model.Timetable.Contains(x =&gt; x.Time == timeval &amp;&amp; x =&gt; x.DayOfWeek = i))%&gt;
  </code></pre>
  
  <p>How is that done?</p>
  
  <p>/M</p>