public override ActionResult Index() { RedirectToRouteResult redirectToRouteResult = null; var loginModel = (LoginSessionModel)Session[SessionKeys.LoginSession.ToString()]; if (loginModel == null) { // ログイン画面に遷移する redirectToRouteResult = RedirectToAction( nameof(LoginController.Index), CustomHelper.GetControllerName <LoginController>()); } else { // 勤怠一覧画面に遷移する //redirectToRouteResult = RedirectToAction( // nameof(TopController.Index), // CustomHelper.GetControllerName<TopController>()); } return(redirectToRouteResult); }