Beispiel #1
0
        public async Task <IActionResult> SaveMenusByRoles(int roleId, string menuIdsStr)
        {
            var menuIdList = menuIdsStr.Trim(',').Split(',')
                             .Select(str => int.Parse(str)).ToList();

            await roleMenuService.SaveMenusByRoles(roleId, menuIdList);

            return(Success());
        }