void getall()
        {
            ServClient proxy = new ServClient();

            lstBx.ItemsSource = proxy.GetPeople();
            proxy.Close();
        }
Beispiel #2
0
        public ActionResult GetPeople()
        {
            var l = serv.GetPeople();

            List <People> lst = new List <People>();

            foreach (var item in l)
            {
                People p = new People()
                {
                    Id = item.ID, Name = item.Name, Job = item.Job
                };
                lst.Add(p);
            }

            return(View(lst));
        }