Esempio n. 1
0
        public async Task <ActivityTableEntity> GetActivityEntityAsync(string id)
        {
            string partitionKey = ActivityKeyFactory.GetPartitionKeyFromRowKey(id);
            var    entity       = await this.storageAccessService.GetTableEntityAsync <ActivityTableEntity>(Constants.TableNames.Activity, partitionKey, id);

            if (entity == null)
            {
                throw new NotFoundException($"Activity [{id}] not found!");
            }

            return(entity);
        }