I have the classes:
public class Person{ /* Props here */ } public class PersonViewModel { /* Props here */ }
Then the list:
In core 1.1 this extension might work:
public static List MapList(this IMapper mapper, List source) { return source.Select(x => mapper.Map(x)).ToList(); }