Exemple #1
0
 public Task ReplaceOneAsync(int id, CountryDoc doc)
 {
     doc.CountryId = id;
     return(_countries.ReplaceOneAsync(x => x.CountryId == id, doc, new UpdateOptions {
         IsUpsert = true
     }));
 }
Exemple #2
0
 public Task StoreOneAsync(CountryDoc doc)
 {
     return(_countries.InsertOneAsync(doc));
 }