예제 #1
0
        public async Task <PersonEntity> Update(PersonEntity PersonEntity)
        {
            ThrowIfDisposed();

            var response = await _cosmosContainer.ReplaceItemAsync(PersonEntity, PersonEntity.Id, new PartitionKey(PersonEntity.PartitionKey));

            return(response.Value);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public Task <PersonEntity> CreatePersonAsync(PersonEntity person)
 {
     throw new NotImplementedException();
 }