コード例 #1
0
        // GET: api/Animal
        public List <Animal> Get()
        {
            List <Animal> respuesta = new List <Animal>();

            try
            {
                respuesta = AnimBL.ConsultarAnimal();
                return(respuesta);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message, ex.InnerException);
            }
        }