Example #1
0
 public virtual Account[] GetAccounts()
 {
     if (Accounts == null)
     {
         string customer = Thread.CurrentPrincipal.Identity.Name;
         Accounts = new List <Account>(_accountServiceAgent.GetAccounts(customer));
     }
     return(new List <Account>(OutputValidationUtility.Encode <Account>(Accounts)).ToArray());
 }