Loading

MVC WebApi 返回字符串

        [HttpGet]
        public HttpResponseMessage GetWebConfigValue(string key)
        {
            var response = Request.CreateResponse(HttpStatusCode.OK);
            response.StatusCode = HttpStatusCode.OK;
            response.Content=new StringContent(_webConfigerDbService.GetWebConfigValue(key));
            return response;
        }

 

posted @ 2017-02-10 15:08  yaro-feng  阅读(1633)  评论(0编辑  收藏  举报