- There are many ways you resolve this issue but this will try to do quick fixpublic List<accountwrapper> getAccounts() { if(!accountList.IsEmpty()) return accountList; // Don't do SOQL everytime for(Account a : [select Id, Name, AccountNumber, Phone from Account ]) accountList.add(new accountwrapper(a)); return accountList; } public List<accountwrapper_Two> getAccounts2() { if(!accountList2.IsEmpty()) return accountList2; // Don't do SOQL everytime for(Account a : [select Id, Name, AccountNumber, Phone from Account ]) accountList2.add(new accountwrapper_Two(a)); return accountList2; }