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