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; }
public bool Insert(Movie movie) { var collection = GetCollection(); var writeConcernResult = collection.Insert(movie); return writeConcernResult.Ok; }