예제 #1
0
 public async Task <Model.Agent> UpdateAgent(Model.Agent agent)
 {
     return(await _container.UpsertItemAsync <Model.Agent>(agent, new PartitionKey(agent.CompanyRef)));
 }
예제 #2
0
 public async Task <Model.Agent> AddAsync(Model.Agent agent)
 {
     return(await _container.CreateItemAsync(agent, new PartitionKey(agent.CompanyRef)));
 }