Exemplo n.º 1
0
        //SUPPORT METHODS

        private async Task <SampleEntity> GetItem(SampleEntity entity)
        {
            output.WriteLine($"Retrieving the entity '{entity.Id}' from the repository");
            var dbItem = await repository.GetByIdAsync(entity.Id.ToString(), GetPartitionKey(entity));

            return(dbItem.Content);
        }
Exemplo n.º 2
0
 public async Task <SampleEntity> GetByIdAsync(string id, string partition)
 {
     return((await repository.GetByIdAsync(id, partition)).Content);
 }