Exemplo n.º 1
0
        public ActionResult AddPerson(PersonModel model)
        {
            if (ModelState.IsValid)
            {
                //Add Person.
            }

            return JsonView(ModelState.IsValid, "_AddPerson", model);
        }
Exemplo n.º 2
0
        public ActionResult AddPerson()
        {
            var model = new PersonModel
            {
                Id = 1,
                Name = "Hernán"
            };

            return PartialView("_AddPerson", model);
        }
Exemplo n.º 3
0
 public ActionResult AddPersonThrowsException(PersonModel model)
 {
     throw new NotImplementedException();
 }