public ActionResult Validate(int id, Guid validator) { try { if (id == 0 || validator == null) { return Redirect("/Authenticate/Index#signup"); } else { Customer cust = new Customer { ID = id, validator = validator }; cust.ValidateCreation(); TempData["error"] = "You're account has been validated. You may now log in to your account."; return RedirectToAction("Index"); } } catch (Exception) { TempData["error"] = "We failed to validate your account."; return RedirectToAction("Register"); } }