Without more information, I would probably recommend changing the ReadAccounts method to return the accounts list:
Code:
public IEnumerable<AcctRec> ReadAccounts()
{
var AcctsList = new List<AcctRec>();
//populate your account list
return AcctsList;
Leave a comment: