Esempio n. 1
0
        private async Task <long?> GetWebhookIdByName(string offerName, string name)
        {
            if (name == null)
            {
                return(null);
            }

            return((await _webhookService.GetAsync(offerName, name)).Id);
        }
Esempio n. 2
0
 public async Task <ActionResult> GetAsync(string offerName, string webhookName)
 {
     AADAuthHelper.VerifyUserAccess(this.HttpContext, _logger, true);
     _logger.LogInformation($"Get webhook {webhookName} in offer {offerName}.");
     return(Ok(await _webhookService.GetAsync(offerName, webhookName)));
 }