예제 #1
0
 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)));
 }
예제 #2
0
 public async Task <IEnumerable <Webhook> > Get()
 {
     return(await _webhookService.GetAllAsync());
 }