常用方法
常用方法
常用方法
常用方法
public async Task <IActionResult> ApiSecrets(ApiResourceSecretsDto apiSecret) { if (!ModelState.IsValid) { return(View(apiSecret)); } await _apiResourceService.AddApiResourceSecretAsync(apiSecret); SuccessNotification(_localizer["SuccessAddApiSecret"], _localizer["SuccessTitle"]); return(RedirectToAction(nameof(ApiSecrets), new { Id = apiSecret.ApiResourceId })); }