Exemplo n.º 1
0
        public void DeleteEnfermedad(int id, int cedula)
        {
            EnfermedadService con = new EnfermedadService();

            con.DeleteEnfermedad(id, cedula);
        }
Exemplo n.º 2
0
        public IHttpActionResult GetEnfermedadesxUsuarioId(int cedula)
        {
            EnfermedadService con = new EnfermedadService();

            return(Ok(con.GetEnfermedadesxUsuarioId(cedula)));
        }
Exemplo n.º 3
0
        public IHttpActionResult GetAllEnfermedadesxUsuario(int id)
        {
            EnfermedadService con = new EnfermedadService();

            return(Ok(con.GetAllEnfermedadesxUsuario(id)));
        }
Exemplo n.º 4
0
        public IHttpActionResult GetIdEnfermedad(string nombre)
        {
            EnfermedadService con = new EnfermedadService();

            return(Ok(con.GetIdEnfermedad(nombre)));
        }
Exemplo n.º 5
0
        public IHttpActionResult GetAllEnfermedadesN()
        {
            EnfermedadService con = new EnfermedadService();

            return(Ok(con.GetAllEnfermedadesN()));
        }
Exemplo n.º 6
0
        public void PostPersona([FromBody] Enfermedad enfermedad)
        {
            EnfermedadService con = new EnfermedadService();

            con.PostEnfermedad(enfermedad);
        }