public async Task <IPaginationResult <IWalletBalance> > GetBalances(int take, string continuation)
        {
            var t = await _storage.GetDataAsync(WalletBalanceEntity.GeneratePartitionKey());

            var result = await _storage.GetDataWithContinuationTokenAsync(WalletBalanceEntity.GeneratePartitionKey(), take, continuation);

            return(PaginationResult <IWalletBalance> .Create(result.Entities.Cast <IWalletBalance>(), result.ContinuationToken));
        }
 public Task DeleteIfExist(string address)
 {
     return(_storage.DeleteIfExistAsync(WalletBalanceEntity.GeneratePartitionKey(),
                                        WalletBalanceEntity.GenerateRowKey(address)));
 }
 public Task InsertOrReplace(IWalletBalance balance)
 {
     return(_storage.InsertOrReplaceAsync(WalletBalanceEntity.Create(balance)));
 }