public HttpResponseMessage ObtenerPorId(int id) { var resultado = (HttpResponseMessage)null; try { resultado = Request.CreateResponse(HttpStatusCode.OK, _temaService.GetById(id)); } catch (Exception exception) { resultado = Request.CreateResponse(HttpStatusCode.InternalServerError, new { message = exception.Message }); } return(resultado); }