public static Task <bool> HasPermissionAsync(this IManageRolesAsync manageRoles, int userAuthId, string permission, CancellationToken token = default)
 {
     return(manageRoles.HasPermissionAsync(userAuthId.ToString(CultureInfo.InvariantCulture), permission, token));
 }
 public static Task UnAssignRolesAsync(this IManageRolesAsync manageRoles, int userAuthId, ICollection <string> roles = null, ICollection <string> permissions = null, CancellationToken token = default)
 {
     return(manageRoles.UnAssignRolesAsync(userAuthId.ToString(CultureInfo.InvariantCulture), roles, permissions, token));
 }
 public static Task <ICollection <string> > GetPermissionsAsync(this IManageRolesAsync manageRoles, int userAuthId, CancellationToken token = default)
 {
     return(manageRoles.GetPermissionsAsync(userAuthId.ToString(CultureInfo.InvariantCulture), token));
 }