public HttpResponseMessage GetTodos() { try { var listaTodos = TodosRepository.ConsultarTodos(); return(Request.CreateResponse(HttpStatusCode.OK, listaTodos)); } catch (Exception e) { Console.WriteLine($"An Exception has been caught: {e.Message}"); return(Request.CreateResponse(HttpStatusCode.InternalServerError)); } }