public HttpResponseMessage ObternerTodos() { try { var personas = PersonaDAO.ConsultarTodos(); return(Request.CreateResponse(HttpStatusCode.OK, personas)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, new { Mensaje = ex.Message })); } }