0

ログイン ページ (ユーザー名とパスワードを確認しています) に入りましたが、ホームページが開きません。

   public class AccountController : Controller
        {
            Account _AccountProcess = new Account();

            public ActionResult Index()
            {
                return View("Login");
            }

            public ActionResult Login()
            {
                return View();
            }

            [HttpPost]
            public ActionResult Login(AccountItem accountItem)
            {
                if (_AccountProcess.LoginAccount(accountItem)) >> Verifying the username and password
                {
                    FormsAuthentication.SetAuthCookie(accountItem.UserName, true);
                    return RedirectToAction("Index", "Base"); >> main page.. RedirectToAction not working
                }
                else
                {
                    return RedirectToAction("Index", "Account");
                }            
            }
        }    
4

0 に答える 0