Exemplo n.º 1
0
        public ActionResult AddPhone(Phone phone, int id)
        {
            phone.PersonID = id;

            HTTPHelper.Add <Phone>("http://localhost:53006/", "Phone/AddPhone", phone, Method.POST);
            return(RedirectToAction("GetPersons", "Person"));
        }
Exemplo n.º 2
0
 public ActionResult AddPerson(Person person)
 {
     HTTPHelper.Add <Person>("http://localhost:53006/", "Person/AddPerson", person, Method.POST);
     return(RedirectToAction("GetPersons"));
 }