public void addElement(MongoDBPArameters dBparameters)
 {
     this.listOfMongoDB.Add(new MongoDBPArameters
     {
         id_db           = dBparameters.id_db,
         name            = dBparameters.name,
         collection_name = dBparameters.collection_name,
         base_name       = dBparameters.base_name,
     });
 }
        public MongoDBPArameters getSpecificParamters(string name)
        {
            MongoDBPArameters emptyList = new MongoDBPArameters()
            {
                id_db           = 0,
                name            = "brak",
                base_name       = "",
                collection_name = ""
            };

            var result = this.listOfMongoDB.Where(x => x.name == name);

            if (result.Any())
            {
                return(result.First());
            }
            else
            {
                return(emptyList);
            }
        }