public static void Configure(IDocumentConfig config) { ServicesContainer.AddScoped <MongoDbServices>((sp) => { return(new MongoDbServices(config)); }); }