public HttpResponseMessage GetNames(HttpRequestMessage request, string name) { return(CreateHttpResponse(request, () => { HttpResponseMessage response = null; var data = _initiativeService.GetNames(name); response = request.CreateResponse(HttpStatusCode.OK, data); return response; })); }