Ejemplo n.º 1
0
        /// <summary>
        ///  新闻菜单(全部)
        /// </summary>
        /// Author  : Napoleon
        /// Created : 2015-06-10 16:41:57
        public ActionResult LoadMenuList()
        {
            DataTable dt   = _newsMenu.GetNewsMenuGrid(PublicFields.Use);
            string    json = dt.ConvertToComboboxJson("Id", "MenuName", defaultId: "", defaultText: "无");

            return(Content(json));
        }
Ejemplo n.º 2
0
        /// <summary>
        ///  加载新闻菜单列表
        /// </summary>
        /// Author  : Napoleon
        /// Created : 2015-06-09 10:48:05
        public ActionResult LoadMenuGrid()
        {
            DataTable menu = _menuService.GetNewsMenuGrid(PublicFields.Use);
            string    json = menu.ConvertToTreeGridJson();

            return(Content(json));
        }