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