title: Convert to nested foreach into lambda expression
body: <p>I want to convert nested foreach      </p>
  
  <pre><code>foreach (Tuple&lt;int, string, Guid&gt; s in services)
       {
        foreach (BEPartnership p in partnership)
           {                                                                      
             p.Partner.Services = new List&lt;Tuple&lt;int, string&gt;&gt;(); 
               if (s.Item3 == p.Partner.Id)
                 p.Partner.Services.Add(new Tuple&lt;int, string&gt;(s.Item1, s.Item2));
            }
      }
  </code></pre>
  
  <p>to something like this</p>
  
  <pre><code>services.SelectMany( 
   s=&gt;partnership.Select(
   p=&gt;new {partnerId = p.Partner.Id, servicePartnerId = s.Item3})
    .Where(x=&gt;x.partnerId == x.servicePartnerId)
    .ToList()
    .ForEach( //....) )
  </code></pre>