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