public ActionResult Editar(TipoIdentificacion tipoidentificacion) { try { if (ObjTipoIdentificacion.ActualizaTipoIdentificacion(tipoidentificacion.IdTipoIdentificacion, tipoidentificacion.Identificacion, tipoidentificacion.Estado)) { return(RedirectToAction("Index")); } else { ViewBag.TipoIdentidicaciones = ObjTipoIdentificacion.ConsultarTipoIdentificacion(); return(View()); } } catch (Exception ex) { return(new HttpNotFoundResult("Error al editar EL Tipo de Indentificacion")); } }
public ActionResult Editar(TipoIdentificacion tipoIdentificacion) { try { if (ObjTipoIdentificacion.ActualizaTipoIdentificacion(tipoIdentificacion.IdTipoIdentificacion, tipoIdentificacion.Descripcion, tipoIdentificacion.Estado, Session["Identificacion"].ToString())) { return(RedirectToAction("index")); } else { return(View(tipoIdentificacion)); } } catch (Exception) { return(View(tipoIdentificacion)); throw; } }