Combined foreach with LINQ