Beispiel #1
0
        //PostManager postManager = new PostManager();
        // GET: UserInfo
        //个人显示
        public ActionResult Index( )
        {
            //得到ID
            int userid = Convert.ToInt32(Session["UserID"].ToString());

            ucvm.user = db.UserInfo.Find(userid);

            //根据ID显示评论
            ucvm.viewcomment = userinfomanager.GetCommById(userid);
            //根据ID显示回复评论
            ucvm.vierecomment = userinfomanager.GetReCommById(userid);
            //根据ID显示个人资料
            //ucvm.viewUserInfo = userinfomanager.IEGetUser(userid);
            return(View(ucvm));
        }