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