public JsonResult Eliminar(int id) { ResponseModel rm = new ResponseModel(); rm = habilidad.Eliminar(id); //if (rm.response) rm.href = "self"; return(Json(rm, JsonRequestBehavior.AllowGet)); }
public JsonResult Eliminar(int id) { var rm = new ResponseModel(); try { if (ModelState.IsValid) { rm = habilidad.Eliminar(id); if (rm.response) { rm.href = "/admin/habilidades/"; } } } catch (Exception) { throw; } return(Json(rm)); }
public JsonResult Eliminar(int id) { return(Json(habilidad.Eliminar(id))); }
public JsonResult Eliminar(int id) { Redirect("~/admin/habilidades/index"); return(Json(habilidades.Eliminar(id), JsonRequestBehavior.AllowGet)); }
public JsonResult Eliminar(int id) => Json(habilidad.Eliminar(id));