public static Erc20BlackListAddressesEntity Create(IErc20BlackListAddress whiteListAddress) { return(new Erc20BlackListAddressesEntity { PartitionKey = GetPartitionKey(whiteListAddress.Address), Address = GetRowKey(whiteListAddress.Address), }); }
public async Task SaveAsync(IErc20BlackListAddress address) { var entity = Erc20BlackListAddressesEntity.Create(address); await _table.InsertOrReplaceAsync(entity); }