public virtual async Task <bool> IsSubscribedAsync(SubscriptionsGetByNameDto subscriptionsGetByName)
        {
            var isSubscribed = await _userSubscribeRepository
                               .UserSubscribeExistsAysnc(subscriptionsGetByName.NotificationName, CurrentUser.GetId());

            return(isSubscribed);
        }
 public virtual async Task <bool> IsSubscribedAsync(
     Guid?tenantId,
     Guid userId,
     string notificationName,
     CancellationToken cancellationToken = default)
 {
     using (_currentTenant.Change(tenantId))
         return(await _userSubscribeRepository
                .UserSubscribeExistsAysnc(notificationName, userId, cancellationToken));
 }