Пример #1
0
        /// <summary>
        /// 显示“我的消息”列表
        /// </summary>
        /// <returns></returns>
        public ActionResult MyMessages()
        {
            ViewBag.CurrentUser = CurrentUser;
            var all = AccountMgr.GetUserMessages(CurrentUser.id);

            return(View(all));
        }
Пример #2
0
        /// <summary>
        /// 获取“我的”页面
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            var userid = CurrentUser == null ? 0 : CurrentUser.id;

            ViewBag.Messages        = AccountMgr.GetUserMessages(userid);
            ViewBag.UserCollections = AccountMgr.GetUserCollections(userid);

            return(View(CurrentUser));
        }