示例#1
0
        public Task <int> CountUsers(Guid siteId, string userNameBeginsWith)
        {
            if (multiTenantOptions.UseRelatedSitesMode)
            {
                siteId = multiTenantOptions.RelatedSiteId;
            }

            return(queries.CountUsers(siteId, userNameBeginsWith, CancellationToken));
        }
示例#2
0
 public Task <int> GetUserCount(Guid siteId)
 {
     // this is only used on setup controller
     // to make sure admin user was created
     return(_userQueries.CountUsers(siteId, string.Empty, CancellationToken));
 }