public void Configure(IMapperConfigurationExpression mapper) { mapper.AddModule <Service.Config.AutoMapperModule>(); mapper.AddProfile(this); }
public static void AddModule <TModule>(this IMapperConfigurationExpression mapper) where TModule : IAutoMapperModule, new() { mapper.AddModule(new TModule()); }