added poll pages
This commit is contained in:
parent
6d6e720695
commit
1158aff6df
8 changed files with 340 additions and 14 deletions
|
@ -357,5 +357,15 @@ namespace Lieb.Data
|
|||
await context.SaveChangesAsync();
|
||||
return true;
|
||||
}
|
||||
|
||||
public List<LiebUser> GetGroupMembers(int roleId)
|
||||
{
|
||||
using var context = _contextFactory.CreateDbContext();
|
||||
return context.LiebUsers
|
||||
.Include(u => u.RoleAssignments)
|
||||
.ThenInclude(r => r.LiebRole)
|
||||
.Where(u => u.RoleAssignments.Where(r => r.LiebRole.LiebRoleId == roleId).Any())
|
||||
.ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue