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