public ActionResult ValidateToken(string token) { bool IsValid = true; CustomerDAL cd = new CustomerDAL(); IsValid = cd.ValidateToken(token); if (IsValid) { return RedirectToAction("FinishRegistration", "Customer", new { token=token}); } else { ModelState.AddModelError("", "Token is not valid."); return RedirectToAction("Index"); } //MessageBox.Show("Token is: " + token); }