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")); }
public ActionResult AddPerson(Person person) { HTTPHelper.Add <Person>("http://localhost:53006/", "Person/AddPerson", person, Method.POST); return(RedirectToAction("GetPersons")); }