title: Assign Values from one list to Another list based on Id
body: <p>Could you please help me in Assigning values to a List 2 from another List 1 based on a id, Here are  the two Lists structure which are the object of two classes :</p>
  
  <pre><code>List 1 object :
  
  public class Person
  {
     int id;
     string fnName;
     string lnName;
  }
  
  List 2 Object:
  
  public class Payment
  {
     int paymentId;
     string paymentType;
     IEnumerable&lt;string&gt; paymentPersonIds;
     IEnumerable&lt;Person&gt; PersonDetails;
  
  }
  </code></pre>
  
  <p>Basically I get the data for List 1 from a  one function and List 2 data from other function, I need to fill the Person Details in Payment List if <code>PaymentPersonIds</code> matches in List 1 id?</p>