Example #1
0
 public static TDestination MapCollection <TSource, TDestination>(this TSource source)
 {
     MapperConfig.Configure();
     return(Mapper.Map <TSource, TDestination>(source));
 }
Example #2
0
 public static TDestination Map <TDestination>(this object TSource)
 {
     MapperConfig.Configure();
     return(Mapper.Map <TDestination>(TSource));
 }