public ActionResult Edit(PERSONA Parentesco) { if (ModelState.IsValid) { PersonaLogic.EditPersona(Parentesco); return(RedirectToAction("Index")); } return(View(Parentesco)); }
public JsonResult Edit(PERSONA Persona) { try { return((PersonaLogic.EditPersona(Persona)) ? Json(new { success = true }) : Json(new { success = false })); } catch (Exception) { return(Json(new { success = false })); } }