Example #1
0
 public static WhiteListAddressesEntity Create(IWhiteListAddress whiteListAddress)
 {
     return(new WhiteListAddressesEntity
     {
         PartitionKey = GetPartitionKey(),
         Address = GetRowKey(whiteListAddress.Address),
     });
 }
Example #2
0
        public async Task SaveAsync(IWhiteListAddress address)
        {
            var entity = WhiteListAddressesEntity.Create(address);

            await _table.InsertOrReplaceAsync(entity);
        }