title: How to get a list of elements which are available in list and model class?
body: <p>I want to get list of objects which has same id values in getAvailableList() method. Below is what I have done up to now:</p>
  
  <pre><code>public ActionResult Ataxi()
  {
      var alist = IM.getAvailableList().Select(x =&gt; new sub_employee { SE_ID = x }).ToList();
      return View(alist);
  }
  </code></pre>
  
  <p>The code above returns id values passed by getAvailableList() method. I want to find a <code>sub_employee</code> list, which have equal <code>SE_ID</code> values to values in get from <code>getAvaialableList()</code> method. I can't find a way to get the list of <code>sub_employee</code>s who has equal ids to list of int values passed by <code>getAvailableList()</code> method. How to solve this problem?</p>