public static IServiceCollection AddMongoMappers(this IServiceCollection services) { ProductMapping.Mapper(); CategoryMapping.Mapper(); return(services); }