Ejemplo n.º 1
0
        public ActionResult GetConfig()
        {
            wxModelMenuConfig menu_config = JSONHepler.JsonToObject <wxModelMenuConfig>(wxMenuService.GetConfig());

            ViewData["menu_config"] = menu_config;
            return(View());
        }
        public ActionResult delete()
        {
            wxResult wxResult = JSONHepler.JsonToObject <wxResult>(wxMenuService.delete());

            if (wxResult.errorcode == "0")
            {
                Response.Write("操作成功");
            }
            else
            {
                Response.Write("操作失败" + wxResult.errmsg);
            }
            return(View());
        }