public ActionResult Index(User user) { var model = ie.GetOne(user); var CurrentPassword = user.Password; if (CurrentPassword == model) { return(RedirectToAction("Index", "Home", user)); // return RedirectToAction("","",) } return(View()); }