public ActionResult GetRegister(User user) { var IsUser = userUtils.IsRegister(user); if (IsUser == true) { userUtils.AddOrUpdate(user); Session["User"] = user; Session["UserType"] = user.Type; return(RedirectToAction("Index", "Home")); } return(RedirectToAction("UserLoginView", "User")); }