public ListarTodosEspecieResponse ListarTodos()
 {
     try
     {
         var response = new ListarTodosEspecieResponse();
         var bc       = new EspecieComponent();
         response.Result = bc.ListarTodos();
         return(response);
     }
     catch (Exception ex)
     {
         var httpError = new HttpResponseMessage()
         {
             StatusCode   = (HttpStatusCode)422, // UNPROCESSABLE ENTITY
             ReasonPhrase = ex.Message
         };
         throw new HttpResponseException(httpError);
     }
 }
Example #2
0
        public List <Especie> ListarTodos()
        {
            var bc = new EspecieComponent();

            return(bc.ListarTodos());
        }
Example #3
0
        public List <Especie> ListarTodos()
        {
            EspecieComponent EspecieComponent = new EspecieComponent();

            return(EspecieComponent.ListarTodos());
        }