Esempio n. 1
0
        public IHttpActionResult GetArticle(string title)
        {
            var res = new ResponseBase();

            try
            {
                var service = new WxService();
                var data    = service.GetArticleByTitle(title);

                res.resData = data;
            }
            catch (Exception ex)
            {
                res.code = "100";
                res.msg  = ex.Message;
            }
            return(Ok(res));
        }