public IViewComponentResult Invoke(int id, int cid)
        {
            var role  = _roleServices.GetByIdWithRoleMenu(id);
            var menus = _menuServices.GetMenusByCategoryId(cid);

            int[] menuIds = role.RoleMenus.Select(m => m.MenuId).ToArray();

            //SetRoleMenusVM vm = new SetRoleMenusVM
            //{
            //    RoleId = id,
            //    Menus = menus,
            //    MenuIds = menuIds
            //};

            var MenuTree = CreatedMenuList(menus.Where(m => m.ParentId == null), menuIds);

            return(View("Default", MenuTree));
            // return View("Menus", _menuServices.CurrenMenuCrumbs(SettingsManager.Menu.BackMenuCId, viewContext));
        }