public HttpResponseMessage PostResponse(string segment, object model) { StringContent content = new StringContent(JsonConvert.SerializeObject(model), Encoding.UTF8, "application/json"); string segmentURL = _apiHelper.GetCreateSegmentURL(segment); //return Client.PostAsync(segmentURL, model).Result; return(Client.PostAsync(segmentURL, content).Result); }