public HttpResponseMessage GetAllCity() { var serializeData = JsonConvert.SerializeObject(_otherService.GetAllCity()); var response = new HttpResponseMessage(HttpStatusCode.OK); response.Content = new StringContent(serializeData); response.Content.Headers.ContentType = new MediaTypeHeaderValue("application/json"); return(response); }