public virtual void AddWebhook(WebhookSubscriptionInfo subscription, string webhookName)
 {
     UnitOfWorkManager.WithUnitOfWork(() =>
     {
         CheckPermissions(subscription.TenantId, webhookName);
         subscription.SubscribeWebhook(webhookName);
     });
 }
 public virtual async Task AddWebhookAsync(WebhookSubscriptionInfo subscription, string webhookName)
 {
     await UnitOfWorkManager.WithUnitOfWorkAsync(async() =>
     {
         await CheckPermissionsAsync(subscription.TenantId, webhookName);
         subscription.SubscribeWebhook(webhookName);
     });
 }
        public void AddWebhook(WebhookSubscriptionInfo subscription, string webhookName)
        {
            CheckPermissions(subscription.TenantId, webhookName);

            subscription.SubscribeWebhook(webhookName);
        }
        public async Task AddWebhookAsync(WebhookSubscriptionInfo subscription, string webhookName)
        {
            await CheckPermissionsAsync(subscription.TenantId, webhookName);

            subscription.SubscribeWebhook(webhookName);
        }