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