title: Return function for list of id's
body: <p>I have method that returns function for companySurveys</p>
  <p>Here is it</p>
  <pre><code>private Func&lt;IQueryable&lt;Client&gt;, IQueryable&lt;CompanySurvey&gt;&gt; JoinCompanySurvey(int id, 
          IQueryable&lt;CompanySurvey&gt; companuSurveyQuery)
      {
         var function = (IQueryable&lt;Client&gt; companies) =&gt; from companySurvey in companuSurveyQuery
                            where companySurvey.Id == id
                            join company in companies
                            on companySurvey.CompanyId equals company.CompanyId
                            into res
                            from company in res
                            select companySurvey;
  
          return function;
      }
  </code></pre>
  <p>id parameter is companySurvey ID.</p>
  <p>I need method that can work with list of id's.</p>
  <p>So I can send here List and return function for many companySurveys</p>
  <p>So same stuff as now, but for many.</p>
  <p>How I need to rewrite this method?</p>