public async Task <IUserTransferWallet> GetUserContractAsync(string userAddress, string transferContractAddress) { string lowerUserAddress = userAddress.ToLower(); IUserTransferWallet wallet = await _table.GetDataAsync(UserTransferWalletEntity.GenerateParitionKey(lowerUserAddress), transferContractAddress); return(wallet); }
public async Task SaveAsync(IUserTransferWallet wallet) { var entity = UserTransferWalletEntity.Create(wallet); await _table.InsertAsync(entity); }
public async Task DeleteAsync(string userAddress, string transferContractAddress) { string lowerUserAddress = userAddress.ToLower(); await _table.DeleteIfExistAsync(UserTransferWalletEntity.GenerateParitionKey(lowerUserAddress), transferContractAddress); }