public AccountEntity[] SearchAccountAndBalance(string accountNo, string balance) { try { using (IAccountData accountData = Builder.AccountData()) { return(this.ConvertDataTableToEntities(accountData.ListAccount(accountNo, balance).Tables[0])); } } catch (Exception ex) { throw new BSLException("SearchAccountAndBalance event occurs an error.[" + ex.Message + "]", ex, true); } }
public AccountEntity[] Search(string search) { try { using (IAccountData accountData = Builder.AccountData()) { Entities.AccountEntity ac = new AccountEntity(); ac.Equals(""); return(this.ConvertDataTableToEntities(accountData.ListAccount(search).Tables[0])); } } catch (Exception ex) { throw new BSLException("Search event occurs an error.[" + ex.Message + "]", ex, true); } }
public AccountEntity[] SearchAccount(string accountNo) { try { using (IAccountData objAccountData = Builder.AccountData()) { //objAccountData.AddAccount(accountNo); //objAccountData.ListAccount(accountNo); //objAccountData = Builder.AccountData(); Entities.AccountEntity ac = new AccountEntity(); ac.Equals(""); return(this.ConvertDataTableToEntities(objAccountData.ListAccount(accountNo).Tables[0])); } } catch (Exception ex) { throw new BSLException("SearchAccount event occurs an error.[" + ex.Message + "]", ex, true); } finally { //if (objAccountData != null) objAccountData.Dispose(); } }