public async Task <int> GetCountAsync(AccountTier tier)
        {
            var count = await _tableStorage.GetDataAsync(TierUpgradeRequestEntity.GenerateCountPk(tier),
                                                         TierUpgradeRequestEntity.GenerateCountRk());

            return(count?.Count ?? 0);
        }
        public async Task <Dictionary <string, int> > GetCountsAsync()
        {
            var result = new Dictionary <string, int>
            {
                { AccountTier.Advanced.ToString(), 0 },
                { AccountTier.ProIndividual.ToString(), 0 }
            };

            var partitionKeys = new List <string>
            {
                TierUpgradeRequestEntity.GenerateCountPk(AccountTier.Advanced),
                TierUpgradeRequestEntity.GenerateCountPk(AccountTier.ProIndividual)
            };

            var counts = await _tableStorage.GetDataAsync(partitionKeys);

            foreach (var count in counts)
            {
                result[count.Tier.ToString()] = count.Count;
            }

            return(result);
        }