Example #1
0
 public async Task <int> CountUsersInRole(int siteId, int roleId, string searchInput)
 {
     if (multiTenantOptions.UseRelatedSitesMode)
     {
         siteId = multiTenantOptions.RelatedSiteId;
     }
     return(await dbRoles.GetCountOfUsersInRole(siteId, roleId, searchInput));
 }
Example #2
0
 public async Task <int> CountUsersInRole(int siteId, int roleId, string searchInput, CancellationToken cancellationToken = default(CancellationToken))
 {
     cancellationToken.ThrowIfCancellationRequested();
     return(await dbRoles.GetCountOfUsersInRole(siteId, roleId, searchInput));
 }
Example #3
0
 public async Task <int> CountUsersInRole(int siteId, int roleId, string searchInput)
 {
     return(await dbRoles.GetCountOfUsersInRole(siteId, roleId, searchInput));
 }