public async Task Delete(string address) { if (!await _storage.DeleteIfExistAsync(ObservableWalletEntity.GeneratePartitionKey(address), ObservableWalletEntity.GenerateRowKey())) { throw new BusinessException($"Wallet {address} not exist", ErrorCode.EntityNotExist); } }
public async Task <IObservableWallet> Get(string address) { return(await _storage.GetDataAsync(ObservableWalletEntity.GeneratePartitionKey(address), ObservableWalletEntity.GenerateRowKey())); }