public static TDestination To <TDestination>(this object obj)
 {
     return(ModelMapper.ProjectTo <TDestination>(obj));
 }
Exemplo n.º 2
0
 public static IEnumerable <TDestination> To <TDestination>(this IEnumerable <object> collection)
 {
     return(collection
            .Select(elem => ModelMapper.ProjectTo <TDestination>(elem))
            .ToList());
 }