private async Task <long?> GetWebhookIdByName(string offerName, string name) { if (name == null) { return(null); } return((await _webhookService.GetAsync(offerName, name)).Id); }
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))); }