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