public async Task <ActionResult> GetAllAsync(string offerName) { AADAuthHelper.VerifyUserAccess(this.HttpContext, _logger, true); _logger.LogInformation($"Get all webhooks in offer {offerName}."); return(Ok(await _webhookService.GetAllAsync(offerName))); }
public async Task <IEnumerable <Webhook> > Get() { return(await _webhookService.GetAllAsync()); }