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