public async Task <PersonEntity> Update(PersonEntity PersonEntity) { ThrowIfDisposed(); var response = await _cosmosContainer.ReplaceItemAsync(PersonEntity, PersonEntity.Id, new PartitionKey(PersonEntity.PartitionKey)); return(response.Value); }
public async Task <PersonEntity> Add(PersonEntity PersonEntity) { ThrowIfDisposed(); if (PersonEntity == null) { throw new ArgumentNullException(nameof(PersonEntity)); } var response = await _cosmosContainer.CreateItemAsync(PersonEntity, new PartitionKey(PersonEntity.PartitionKey)); return(response.Value); }
public Task <PersonEntity> CreatePersonAsync(PersonEntity person) { throw new NotImplementedException(); }