示例#1
0
        public SavedPlaylist AddNewSavedPlaylist(string name)
        {
            var newOne = new MongoSavedPlaylist()
            {
                Name = name
            };

            MongoHelper.Current.GetCollection <MongoSavedPlaylist>("savedplaylist")
            .Insert(newOne);

            return(newOne);
        }
示例#2
0
        public SavedPlaylist AddNewSavedPlaylist(string name)
        {
            var newOne = new MongoSavedPlaylist()
            {
                Name = name
            };

            MongoHelper.Current.GetCollection<MongoSavedPlaylist>("savedplaylist")
                .Insert(newOne);

            return newOne;
        }