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()); }
public async Task <IActionResult> Delete([FromRoute] Guid id, CancellationToken ct) { await _webhookService.DeleteAsync(id, ct); return(NoContent()); }