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

            proxy.AddPerson();
            proxy.Close();
        }
Exemple #2
0
 public ActionResult AddPerson(People ppl)
 {
     serv.AddPerson(new Person()
     {
         ID = ppl.Id, Name = ppl.Name, Job = ppl.Job
     });
     return(RedirectToAction("GetPeople"));
 }