Ejemplo n.º 1
0
        /// <summary>
        /// 获取角色权限
        /// </summary>
        /// <param name="roleId"></param>
        /// <returns></returns>
        public async Task <IActionResult> GetRolePermissions(long roleId)
        {
            var rolePermissions = await permissionManger.GetPermissionsByRoleIdAsync(roleId);

            return(PartialView("_Permission", rolePermissions));
        }