public UserAuthMsgVM GetUserAuthMsgByUserID(string userid, string portType) { RegUserInfo userInfo = InfoSer.GetUserInfobyID_claz(userid); UserAuthMsgVM vM = new UserAuthMsgVM { LoginUser = userInfo }; return(vM); }
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)); }