How to make these foreach loops efficient?
<p>I have List of (PatchFacilityManager) and a List of (Int)  facilityManagerId. I want to make the below code efficient. Is there any way to remove these two foreach loop.</p>

<pre><code> foreach (PatchFacilityManager PM in patchFacilityManager)
 {
     foreach (int FM in facilityManagerId)
     {
         if (PM.FacilityManagerId == FM)
         {
             PM.IsSelected = true;
         }
     }
 }
</code></pre>
