示例#1
0
 public virtual async Task <List <IdentityUser> > GetUsersInOrganizationUnitAsync(
     OrganizationUnit organizationUnit,
     bool includeChildren = false)
 {
     if (includeChildren)
     {
         return(await IdentityUserRepository
                .GetUsersInOrganizationUnitWithChildrenAsync(organizationUnit.Code, CancellationToken));
     }
     else
     {
         return(await IdentityUserRepository
                .GetUsersInOrganizationUnitAsync(organizationUnit.Id, CancellationToken));
     }
 }