public HttpResponseMessage GetProcessWithChildren(HttpRequestMessage request, int processId) { return(GetHttpResponse(request, () => { HttpResponseMessage response = null; var processModel = new ProcessModel(); processModel.Process = _ExtractionProcessService.GetProcess(processId); processModel.ProcessRoles = _ExtractionProcessService.GetProcessRoleByProcess(processId); // notice no need to create a seperate model object since Process entity will do just fine response = request.CreateResponse <ProcessModel>(HttpStatusCode.OK, processModel); return response; })); }