public async Task <IActionResult> View(Guid?id)
 {
     try
     {
         CredentialViewModel resultView = _credentialManager.GetCredentialDetails(id);
         return(Ok(resultView));
     }
     catch (Exception ex)
     {
         return(ex.GetActionResult());
     }
 }