public async Task <IEnumerable <string> > GetRolesAsync(string permissionId, CancellationToken cancellationToken) { IEnumerable <TPermissionRole> permissionRoles = await SystemPermissionRoleStore.GetPermissionRolesByPermissionIdAsync(permissionId, cancellationToken); return(permissionRoles.Select(p => p.RoleId)); }
public Task <IEnumerable <TPermissionRole> > GetPermissionRolesByPermissionIdAsync(string permissionId, CancellationToken cancellationToken) { return(SystemPermissionRoleStore.GetPermissionRolesByPermissionIdAsync(permissionId, cancellationToken)); }