public ActionResult ChangePassword(Credential credential)
        {
            var createdCredential = _iFCredential.ChangePassword(CredentialId, credential);

            //if (credential.Password == credential.Password) { }
            return(Redirect("~/Home"));
        }
 public ActionResult ChangePassword(Credential credential)
 {
     if (ModelState.IsValid)
     {
         var createdCredential = _iFCredential.ChangePassword(CredentialId, credential);
     }
     else if (!ModelState.IsValid)
     {
         return(View(credential));
     }
     return(Redirect("~/Home"));
 }