public Task <int> CountUsers(Guid siteId, string userNameBeginsWith) { if (multiTenantOptions.UseRelatedSitesMode) { siteId = multiTenantOptions.RelatedSiteId; } return(queries.CountUsers(siteId, userNameBeginsWith, CancellationToken)); }
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)); }