dotnet add package Structr.Collections.Extensions.Automapper
Provided extensions allow to perform one-string mappings between collections without a redundant code.
var list = new List<Foo>
{
new Foo { Id = 1, Name = "Bar"},
new Foo { Id = 2, Name = "Baz"}
};
var mappedCollection = mapper.MapList<FooDto>(list);