public async Task <IActionResult> Delete(string id) { try { var credential = _credentialManager.DeleteCredential(id); await _webhookPublisher.PublishAsync("Credentials.CredentialDeleted", credential.Id.ToString(), credential.Name).ConfigureAwait(false); return(await base.DeleteEntity(id)); } catch (Exception ex) { return(ex.GetActionResult()); } }