//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); }
public async Task <SampleEntity> GetByIdAsync(string id, string partition) { return((await repository.GetByIdAsync(id, partition)).Content); }