public async Task InsertOrReplace(ICoin coin) { var entity = CoinEntity.CreateCoinEntity(coin); var index = AzureIndex.Create(_addressIndexName, coin.AdapterAddress, entity); await _table.InsertOrReplaceAsync(entity); await _addressIndex.InsertAsync(index); }
public async Task InsertOrReplace(ICoin coin) { await _table.InsertOrReplaceAsync(CoinEntity.CreateCoinEntity(coin)); }