public IHttpActionResult Get(int id) { speedTest speedTestFound; try { speedTestFound = speedTestService.findById(id); } catch (Exception e) { return(ResponseMessage(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, e.ToString()))); } if (speedTestFound == null) { return(NotFound()); } return(Ok(speedTestFound)); }