Beispiel #1
0
 public async Task <bool> RoleExists(
     int siteId,
     string roleName,
     CancellationToken cancellationToken = default(CancellationToken))
 {
     cancellationToken.ThrowIfCancellationRequested();
     return(await dbRoles.Exists(siteId, roleName, cancellationToken));
 }
Beispiel #2
0
        public async Task <bool> RoleExists(int siteId, String roleName)
        {
            if (multiTenantOptions.UseRelatedSitesMode)
            {
                siteId = multiTenantOptions.RelatedSiteId;
            }

            return(await dbRoles.Exists(siteId, roleName));
        }
Beispiel #3
0
 public async Task<bool> RoleExists(int siteId, String roleName)
 {
     return await dbRoles.Exists(siteId, roleName);
 }