예제 #1
0
        public async Task <ActionResult> DeleteAsync(string offerName, string webhookName)
        {
            AADAuthHelper.VerifyUserAccess(this.HttpContext, _logger, true);
            _logger.LogInformation($"Delete webhook {webhookName} from offer {offerName}.");
            await _webhookService.DeleteAsync(offerName, webhookName);

            return(NoContent());
        }
예제 #2
0
        public async Task <IActionResult> Delete([FromRoute] Guid id, CancellationToken ct)
        {
            await _webhookService.DeleteAsync(id, ct);

            return(NoContent());
        }