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