public async Task <ActionResult> Login(string loginId = null) { string domainName = Request.Url.Host; MServiceDomain domainService = await mServiceDomainService.getServiceByDomainName(domainName); if (null != domainService) { Session[Global.UserLogo] = domainService.MainImage; } if (Session[Global.UserLogo] == null) { base.SetLogo("bi_main.png", "Login"); } if (loginId == null) { return(View()); } else { LoginViewModel lvm = new LoginViewModel(); lvm.ID = loginId; return(View(lvm)); } }
public async Task <ActionResult> Index(string loginId = null) { Session[Global.UserLogo] = "bi_main.png"; string domainName = Request.Url.Host; MServiceDomain domainService = await mServiceDomainService.getServiceByDomainName(domainName); if (null != domainService) { Session[Global.UserLogo] = domainService.MainImage; } if (Session[Global.UserLogo] == null) { base.SetLogo("bi_main.png", "Login"); } //if (loginId == null) // return View(); //else //{ // LoginViewModel lvm = new LoginViewModel(); // lvm.ID = loginId; // return View(lvm); if (Session[Global.LoginID] == null) // 로그인 인증이 되어있지 않으면 { return(Redirect("http://tcms.or.kr")); // tcms home으로 redirection } else { LoginViewModel lvm = new LoginViewModel(); lvm.ID = loginId; return(View(lvm)); } }