public override bool Execute() { if (!Verifier.CheckBankAccountNumber(BankAccountNumber)) { Information = StringSource.BankAccountNumberStructureError(); return(false); } using (var bankService = new BLL.ServiceReference1.BankServiceClient()) { BankAccount = bankService.GetBankAccountByNumber(BankAccountNumber); if (BankAccount == null) { Information = StringSource.BankAccountNotFound(); return(false); } Currency = bankService.GetCurrencyById(BankAccount.CurrencyID); } if (Currency == null) { Information = StringSource.CurrencyNotFound(); return(false); } IdBankAccount = BankAccount.BankAccountID; Balance = BankAccount.Balance.ToString(); CurrencyName = Currency.Name; CurrencyShortName = Currency.ShortName; IdCurrency = Currency.CurrencyID; Information = StringSource.BankAccountAndClientInfo(BankAccount, Customer, Currency); return(true); }