Example #1
0
 public async Task Update(ObjectConfigContract objectConfig)
 {
     objectContext = new ObjectContext();
     await objectContext.ObjectConfigs.ReplaceOneAsync(Builders <ObjectConfig> .Filter.Eq("Id", objectConfig.Id), objectConfig.ToMongoEntity());
 }
Example #2
0
 public async Task Create(ObjectConfigContract objectConfig)
 {
     objectContext = new ObjectContext();
     await objectContext.ObjectConfigs.InsertOneAsync(objectConfig.ToMongoEntity());
 }