public HttpResponseMessage getById(HttpRequestMessage request, int id) { return(CreateHttpResponse(request, () => { var model = ErrorService.ReadID(id); var response = request.CreateResponse(HttpStatusCode.OK, model); return response; })); }