public async Task UpdateAsync(IPipeline pipeline)
 {
     if (pipeline == null)
     {
         return;
     }
     PipelineMongoDbModel dbo = new PipelineMongoDbModel(pipeline);
     await PipelineCollection.ReplaceOneAsync(new BsonDocument("_id", new ObjectId(pipeline.Id)), dbo);
 }
 public async Task CreateAsync(IPipeline pipeline)
 {
     if (pipeline == null)
     {
         return;
     }
     PipelineMongoDbModel dbo = new PipelineMongoDbModel(pipeline);
     await PipelineCollection.InsertOneAsync(dbo);
 }