void getinfo() { ServClient proxy = new ServClient(); List <Person> l = new List <Person>(); l.Add(proxy.GetPerson(2)); lstBx.ItemsSource = l; proxy.Close(); }
public ActionResult SearchPeople(int id) { var per = serv.GetPerson(id); People ppl = new People() { Id = per.ID, Name = per.Name, Job = per.Job }; return(View("SearchPeople", ppl)); }