# Class Extensions OptimaJet.Workflow.Api.Mongo.Extensions This class contains extensions for configuring Workflow Engine Api Data services for Mongo database. Namespace: [OptimaJet.Workflow.Api.Mongo](https://api.workflowengine.io/web-api-mongodb/OptimaJet.Workflow.Api.Mongo/) ```csharp public static class Extensions ``` ## Methods `public static IServiceCollection AddWorkflowApiMongo(this IServiceCollection services)` Adds the Workflow Engine Api Persistence Provider services for Mongo database, enabling you to connect other Workflow Api services. ### Parameters | Name | Type | Description | | --- | --- | --- | | `services` | `IServiceCollection` | The [IServiceCollection](https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection). | ### Returns | Type | Description | | --- | --- | | `IServiceCollection` | A [IServiceCollection](https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection) that can be used to further configure services. |