public async Task <ActionResult <ApiSecretApiDto> > GetSecret(int secretId) { var apiSecretsDto = await _apiResourceService.GetApiSecretAsync(secretId); var apiSecretApiDto = apiSecretsDto.ToApiResourceApiModel <ApiSecretApiDto>(); return(Ok(apiSecretApiDto)); }
public async Task <IActionResult> ApiSecretDelete(int id) { if (id == 0) { return(NotFound()); } var clientSecret = await _apiResourceService.GetApiSecretAsync(id); return(View(nameof(ApiSecretDelete), clientSecret)); }