Exemplo n.º 1
0
        public bool Remove(Movie movie)
        {
            if (movie == null) throw new ArgumentNullException("movie");
            if (movie.Id == ObjectId.Empty) throw new ArgumentNullException("movie");

            var collection = GetCollection();
            var writeConcernResult = collection.Remove(Query.EQ("_id", movie.Id));
            return writeConcernResult.Ok;
        }
Exemplo n.º 2
0
 public bool Insert(Movie movie)
 {
     var collection = GetCollection();
     var writeConcernResult = collection.Insert(movie);
     return writeConcernResult.Ok;
 }