title: Copying from one IEnumerable list to another not working
body: <p>I am trying to loop through one enumerable list and populate another empty enumerable list. So basically the first list contains Enumerable list of the entity class and I am trying to populate my viewmodel with this his list. For some reason I cant see the values getting assigned to the viewmodel list though I can see the entity list containing values. What am i doing wrong</p>
  
  <pre><code>var fundClasses = GetService&lt;FUND_CLASS&gt;().Where(x =&gt; x.LEGAL_FUND_CLASS.FUND_ID == id);
  
  IEnumerable&lt;AccountingFundClassesViewModel&gt; accountingFundClassesViewModel = new List&lt;AccountingFundClassesViewModel&gt;();
  
  foreach (var fc in fundClasses)
  {
      foreach (var af in accountingFundClassesViewModel)
      {
          af.Id = fc.ID;
          af.Description = fc.DESCRIPTION;
          af.InvestedAmount = fc.INVESTED_AMMOUNT;
          af.InceptionDate = fc.INCEPTION_DATE;
          af.LegalFundClassId = fc.LEGAL_FUND_CLASS_ID;
          af.DataReference = fc.DATA_REFERENCE;
          af.CogencyClassId = fc.COGENCY_CLASS_ID;
          af.ClosureStatusId = fc.CLOSURE_STATUS_ID;
          af.IsSidePocket = fc.IS_SIDE_POCKET;
          af.IsThematic = fc.IS_THEMATIC;
          af.VehicleTypeId = fc.VEHICLE_TYPE_ID;
      }
  }
  
  var vm = new TermsCondtionsViewModel
  {
      accountingFundClassesViewModel = accountingFundClassesViewModel
  };
  
  return vm;
  </code></pre>
  
  <p>Viewmodels</p>
  
  <pre><code>public class TermsCondtionsViewModel
  {
      public IEnumerable&lt;AccountingFundClassesViewModel&gt; accountingFundClassesViewModel;
  
      public FundTermsViewModel fundTermsViewModel;
  
      public LegalFundClassesViewModel legalFundClassesViewModel;
  }
  
  
  public class AccountingFundClassesViewModel
  {
      public int Id { get; set; }
      public string Description { get; set; }
      public decimal? InvestedAmount { get; set; }
      public DateTime? InceptionDate { get; set; }
      public int? LegalFundClassId { get; set; }
      public int? DataReference { get; set; }
      public int? CogencyClassId { get; set; }
      public int? ClosureStatusId { get; set; }
      public bool IsSidePocket { get; set; }
      public bool IsThematic { get; set; }
      public int? VehicleTypeId { get; set; }
  }
  </code></pre>