public async Task <IActionResult> Delete(PersistedGrantModel model) { var result = await _persistedGrantService.DeleteByKeyAsync(UrlHelper.QueryStringUnSafeHash(model.Key)); if (result) { SuccessNotification("删除成功", "成功"); return(RedirectToAction(nameof(Index))); } return(View(model)); }