System.AggregateException
I'm trying to build an API with using MongoDB. Sorry for so much screenshots I just wanted to show you all my work and understand what to change and what are my mistakes. I'm kinda new at .net core















BaseApi.Repository.UserRepository': Unable to resolve service for type 'System.String' while attempting to activate 'BaseApi.MongoDB.MongoDBModel'

UserRepositoryIMongoDatabaseIMongoDatabaseIMongoDatabaseIMongoDatabaseMongoDbMongoDbbuilder.ServicesMonogDbModelSystem.AggregateException: 'Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: BaseApi.Repository.UserRepository Lifetime: Scoped ImplementationType: BaseApi.Repository.UserRepository': Unable to resolve service for type 'System.String' while attempting to activate 'BaseApi.MongoDB.MongoDBModel'.) (Error while validating the service descriptor 'ServiceType: BaseApi.MongoDB.MongoDBModel Lifetime: Scoped ImplementationType: BaseApi.MongoDB.MongoDBModel': Unable to resolve service for type 'System.String' while attempting to activate 'BaseApi.MongoDB.MongoDBModel'.)'