public HttpResponseMessage GetUploadWithChildren(HttpRequestMessage request, int uploadId) { return(GetHttpResponse(request, () => { HttpResponseMessage response = null; var uploadModel = new UploadModel(); uploadModel.Upload = _ExtractionProcessService.GetUpload(uploadId); uploadModel.UploadRoles = _ExtractionProcessService.GetUploadRoleByUpload(uploadId); // notice no need to create a seperate model object since Upload entity will do just fine response = request.CreateResponse <UploadModel>(HttpStatusCode.OK, uploadModel); return response; })); }