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