예제 #1
0
        // 显示全部节点配置
        public ActionResult ShowAll()
        {
            ADevice device = new ADevice();
            var     rs     = device.select_all();

            if (rs != null)
            {
                return(Content(JsonConvert.SerializeObject(new
                {
                    code = 1,
                    des = "显示成功",
                    data = rs,
                })));
            }
            else
            {
                return(Content(JsonConvert.SerializeObject(new
                {
                    code = 0,
                    des = "显示失败",
                })));
            }
        }