private void GetAccountInfo(int accountId) { BankAccountService.BankAccountB bankAccount = new BankAccountService.BankAccountB(); bankAccount = bankClient.GetBankAccount(accountId); disAccNo = bankAccount.AccountNo; disAccDate = bankAccount.ExpiryDate; disAccCCV = bankAccount.CCV; }
private int GetIdOfTheBankAccount() { BankAccountService.BankAccountServiceClient bankClient = new BankAccountService.BankAccountServiceClient(); BankAccountService.BankAccountB bankOb = new BankAccountService.BankAccountB(); int bankNo = Int32.Parse(txt_profileBankNumber.Text); bankOb = bankClient.GetBankAccount(bankNo); int accId = bankOb.AccountId; return(accId); }