public IActionResult DeleteSecret(int apiResourceId, int secretId) { var result = m_secretManager.DeleteSecret(secretId); if (result.HasError) { ModelState.AddModelError(result.Error.Message); CacheModelState(); } return(RedirectToAction(nameof(Secrets), new { apiResourceId })); }