Ejemplo n.º 1
0
        //makes a list with all persons in db with the information from ad
        public List <Models.Person> GetPeopleList(Dal.AD ad, Dal.SQL sql)
        {
            List <Models.Person> people     = sql.GetPersonList();
            List <Models.Person> peopleList = new List <Models.Person>();

            foreach (Models.Person p in people)
            {
                Models.Person person = ad.GetUserInfo(p.UNI);
                peopleList.Add(new Models.Person(person.UNI, person.Name, person.Studing, p.StartCourse, p.EndCourse));
            }
            return(peopleList);
        }