title: C# Automapper on the nested list
body: <p>I've the following dtos and I'm trying to use automapper, but couldn't quite understand on how to do the same, as this is the first time I'm using automapper any help is really appreciated</p>
  <pre><code>string order {get;set;}
  string orderType {get;set;}
  List&lt;OrderItem&gt; Items {get;set;}
  }
  
  public class OrderItem{
  string itemID {get;set;}
  Price price {get;set;}
  }
  
  public class Price {
  string total {get;set;}
  string regular {get;set;}
  }
  
  public class request {
  string order {get;set;}
  string orderType {get;set;}
  List&lt;Item&gt; Items {get;set;}
  }
  
  public class Item {
  string itemID {get;set;}
  string itemPrice {get;set;}
  string regularPrice {get;set;}
  }
  
  
  I'm trying the following
  
  var config = new MapperConfiguration(cfg =&gt; {
  cfg.CreateMap&lt;request,requestDTO&gt;()
  .ForMember(dest =&gt; dest.order, act=&gt;act.MapFrom(src =&gt; src.order))
  .ForMember(dest =&gt; dest.orderType, act=&gt;act.MapFrom(src =&gt; src.orderType))
  })
  
  How do I create mapping to map 
  
  **
  src.item.itemID to dest.item.itemID
  src.item.itemPrice to dest.item.price.total
  src.item.regularPrice to dest.item.price.regular**
  
  for all the items in my source array
  </code></pre>