public HttpResponseMessage GetSearch(string userName) { string screenName = userName; try { string response = _twitterService.GetSearch(screenName); JObject jResponse = JObject.Parse(response); return(Request.CreateResponse(HttpStatusCode.OK, jResponse)); } catch (Exception ex) { return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex)); } }