示例#1
0
        public IHttpActionResult GetNews()
        {
            //User user = new User();
            //user.Name = "Awol";
            //user.Password = "******";
            //user.Hk_Id = "11";
            //user.Question_Id = 1;
            //user.Question_Answer = "luowei";
            //string json = JsonConvert.SerializeObject(user);
            //MysqlHelper mysqlhelper = new MysqlHelper();

                MysqlHelper mysqlhelper = new MysqlHelper();
                //return mysqlhelper.GetQuestionList();
                return Ok(mysqlhelper.GetNews());
        }