Esempio n. 1
0
        // GET: Jonghor
        public ActionResult Index()
        {
            if (Session["Status"] != null && Session["Status"].ToString() == "Owner")
            {
                HostViewModel hostView = new HostViewModel();
                hostView.SetDorm(Session["Username"].ToString());
                return(View("Host_Homepage", hostView));
            }

            else if (Session["Status"] != null && Session["Status"].ToString() == "User")
            {
                return(RedirectToAction("Index", "User"));
            }
            else
            {
                return(View("Homepage"));
            }
        }