Esempio n. 1
0
        public async Task <List <PersonModel> > GetPeople()
        {
            List <PersonModel> peopleModels = new List <PersonModel>();

            List <Person> people = await _personData.GetPeople();

            if (people != null && people.Count > 0)
            {
                foreach (var p in people)
                {
                    peopleModels.Add(MapPersonToPersonModel(p));
                }
            }

            return(peopleModels);
        }