Esempio n. 1
0
 public ActionResult Consulta(int id)
 {
     try
     {
         var dato = ObjTipoIdentificacion.ConsultaTipoIdentificacion(id);
         return(View(dato));
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 2
0
        public IHttpActionResult GetTipoIdentificacion(int id)
        {
            ConsultaTiposIdentificacionResult tipoIdentificacion = db.ConsultaTipoIdentificacion(id);

            if (tipoIdentificacion == null)
            {
                return(NotFound());
            }

            return(Ok(tipoIdentificacion));
        }
Esempio n. 3
0
        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"));
            }
        }