Lambda Expression with foreach loop :  var coupon=" ";

            foreach(var p in products)
            {
               var query = products.Where(b => b.getId() == p.getId()).ToList();

                if (query != null)
                {
                    foreach(var q in query)
                    {
                        coupon = q.getName();
                        Console.WriteLine(coupon);
                    }
                }
            }

Can anyone tell me what will be the lambda expression of this code-chunk