示例#1
0
        public HttpResponseMessage GetAllContractType()
        {
            var serializeData = JsonConvert.SerializeObject(_otherService.GetAllContractType());
            var response      = new HttpResponseMessage(HttpStatusCode.OK);

            response.Content = new StringContent(serializeData);
            response.Content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
            return(response);
        }