Ejemplo n.º 1
0
        public UserAuthMsgVM GetUserAuthMsgByUserID(string userid, string portType)
        {
            RegUserInfo userInfo = InfoSer.GetUserInfobyID_claz(userid);

            UserAuthMsgVM vM = new UserAuthMsgVM {
                LoginUser = userInfo
            };

            return(vM);
        }
Ejemplo n.º 2
0
        public ActionResult MainView()
        {
            object id = Session["U@id"];

            if (id == null)
            {
                //return View("Error");
                id = "1";
            }
            LoginUserAuthSer loginUser = new LoginUserAuthSer();
            UserAuthMsgVM    vM        = loginUser.GetUserAuthMsgByUserID(id.ToString(), "Web");
            string           str       = loginUser.AuthTreeNode_json(id.ToString(), "Web");

            ViewBag.au = str;
            return(View(vM));
        }