Esempio n. 1
0
        public async Task <int> CountOfRoles(Guid siteId, string searchInput)
        {
            if (multiTenantOptions.UseRelatedSitesMode)
            {
                siteId = multiTenantOptions.RelatedSiteId;
            }

            return(await queries.CountOfRoles(siteId, searchInput, CancellationToken));
        }
Esempio n. 2
0
 public Task <int> GetRoleCount(Guid siteId)
 {
     // this is only used on setup controller
     // to make sure admin user and role was created
     return(_userQueries.CountOfRoles(siteId, string.Empty, CancellationToken));
 }