public ActionResult NewUser(Registration Registration) { try { if (ModelState.IsValid) { Registration.Password = EncryptandDecryptAES.Encrypt(Registration.Password); _RegistrationBL.CreateUser(Registration); TempData["Message"] = "Registration Done Successfully"; return(RedirectToAction("NewUser", "Register")); } else { return(View(Registration)); } } catch (Exception) { throw; } }