public ActionResult Consulta(int id) { try { var dato = ObjTipoIdentificacion.ConsultaTipoIdentificacion(id); return(View(dato)); } catch (Exception) { throw; } }
public IHttpActionResult GetTipoIdentificacion(int id) { ConsultaTiposIdentificacionResult tipoIdentificacion = db.ConsultaTipoIdentificacion(id); if (tipoIdentificacion == null) { return(NotFound()); } return(Ok(tipoIdentificacion)); }
public ActionResult Editar(int IdTipoIdentificacion) { try { var dato = ObjTipoIdentificacion.ConsultaTipoIdentificacion(IdTipoIdentificacion); TipoIdentificacion tipoidentificacion = new TipoIdentificacion(); tipoidentificacion.IdTipoIdentificacion = dato.IdTipoIdentificacion; tipoidentificacion.Identificacion = dato.Identificacion; tipoidentificacion.Estado = dato.Estado; ViewBag.TipoIdentificaciones = ObjTipoIdentificacion.ConsultarTipoIdentificacion(); return(View(tipoidentificacion)); } catch (Exception ex) { return(new HttpNotFoundResult("Error al consultar el tipo de identificacion")); } }