public HttpResponseMessage GetPackageSetup(HttpRequestMessage request) { return(GetHttpResponse(request, () => { HttpResponseMessage response = null; PackageSetup packagesetup = _ExtractionProcessService.GetFirstPackageSetup(); // notice no need to create a seperate model object since PackageSetup entity will do just fine response = request.CreateResponse <PackageSetup>(HttpStatusCode.OK, packagesetup); return response; })); }