public static IQueryable <U> Map <T, U>(this MapperService mapperService, IQueryable <T> collection)
 {
     return(collection.ProjectTo <U>(mapperService.AutoMapper.ConfigurationProvider));
 }
 public static IEnumerable <U> Map <T, U>(this MapperService mapperService, IEnumerable <T> collection)
 {
     return(collection.Select(p => mapperService.Map <T, U>(p)));
 }