public async Task InsertOrReplace(ICoinEvent coinEvent)
        {
            var entity = CoinEventEntity.CreateEntity(coinEvent);
            var index  = new AzureIndex(_operationIdIndex, coinEvent.OperationId, entity);

            await _table.InsertOrReplaceAsync(entity);

            await _index.InsertOrReplaceAsync(index);
        }
        public async Task <IEnumerable <ICoinEvent> > GetAll()
        {
            var all = await _table.GetDataAsync(CoinEventEntity.GetPartitionKey());

            return(all);
        }
        public async Task <ICoinEvent> GetCoinEvent(string transactionHash)
        {
            var entity = await _table.GetDataAsync(CoinEventEntity.GetPartitionKey(), transactionHash);

            return(entity);
        }