public IActionResult GetCredentials(Credential creds) { if (!ModelState.IsValid) { return(RedirectToAction("Amazon")); } //SendCredentials(creds); _CredentialRepository.SaveCredential(creds); return(View("FailedTest")); }