public ActionResult Eliminar(TipoIdentificacion tipoidentificacion) { try { if (ObjTipoIdentificacion.EliminaTipoIdentificacion(tipoidentificacion.IdTipoIdentificacion)) { return(RedirectToAction("Index")); } //else { return(View()); } } catch (Exception ex) { return(new HttpNotFoundResult("Error al consultar la Unidad")); } }
public ActionResult Eliminar(TipoIdentificacion tipoIdentificacion) { try { if (ObjTipoIdentificacion.EliminaTipoIdentificacion(tipoIdentificacion.IdTipoIdentificacion)) { return(RedirectToAction("index")); } else { return(View(tipoIdentificacion)); } } catch (Exception) { return(View(tipoIdentificacion)); throw; } }