public override void ConfigureServices(ServiceConfigurationContext context)
        {
            AbpPermissionManagementBsonClassMap.Configure();

            context.Services.AddMongoDbContext <PermissionManagementMongoDbContext>(options =>
            {
                options.AddDefaultRepositories <IPermissionManagementMongoDbContext>();

                options.AddRepository <PermissionGrant, MongoPermissionGrantRepository>();
            });
        }
        public override void ConfigureServices(IServiceCollection services)
        {
            AbpPermissionManagementBsonClassMap.Configure();

            services.AddMongoDbContext <PermissionManagementMongoDbContext>(options =>
            {
                options.AddDefaultRepositories <IPermissionManagementMongoDbContext>();

                options.AddRepository <PermissionGrant, MongoPermissionGrantRepository>();
            });

            services.AddAssemblyOf <AbpPermissionManagementMongoDbModule>();
        }