Exemple #1
0
        public void UpdateProposal(MongoProposal proposal)
        {
            var filter = Builders <MongoProposal> .Filter.Eq("id", proposal.id);

            collection.ReplaceOne(filter, proposal);
        }
Exemple #2
0
 public void PostProposal(MongoProposal proposal)
 {
     collection.InsertOne(proposal);
 }