Esempio n. 1
0
        public static MongoCollection GetCollection(EnumMongodbCollection collectionName)
        {
            var database = Getdatabase();

            return(database.GetCollection <MediaModel>(collectionName.ToString()));
        }
Esempio n. 2
0
 public static MongoCollection GetCollection(EnumMongodbCollection collectionName)
 {
     var database = Getdatabase();
     return database.GetCollection<MediaModel>(collectionName.ToString());
 }