Esempio n. 1
0
        public IActionResult GetMenuTree(int?appcode = null)
        {
            List <MenusTreeDto> menus = _menusService.GetMenus(appcode);

            if (menus == null || menus.Count <= 0)
            {
                return(NotFound());
            }
            else
            {
                var menu = _menusService.InitMenuTree(new MenusTreeDto(), menus);
                return(Ok(menu.Children));
            }
        }