public async Task <List <Person> > GetPersonListAsync() { List <Person> personList = new List <Person>(); List <BusinessEntity> be = await dal.GetAllInstancesAsync <BusinessEntity>(); List <ContactType> ct = await dal.GetAllInstancesAsync <ContactType>(); List <CountryRegion> cr = await dal.GetAllInstancesAsync <CountryRegion>(); List <EmailAddress> ea = await dal.GetAllInstancesAsync <EmailAddress>(); List <PersonPhone> pp = await dal.GetAllInstancesAsync <PersonPhone>(); for (int i = 0; i < be.Count; i++) { personList.Add(new Person(be[i], ct[i], pp[i], cr[i], ea[i])); } //log.AddToLog("GetPersonListAsync: OK\n"); return(personList); }