public ActionResult Index(User U) { var username = Request.Cookies["UserName"].Value.ToString(); int userId = DbOperation.FetchIdByUserName(username); TempData["HintQuestion"] = DbOperation.FetchHintQuestionByUserName(username); U.UserId = username; if (DbOperation.Authenticity(U)) { return(Redirect("/VisaCancellation")); } else { TempData["Msg"] = "Answer does not Match.Please Try Again"; return(View()); } }