/// <summary> /// 我的消息分布视图 /// </summary> /// <returns></returns> public ActionResult MyNotice() { List <NoticeTable> list = NoticeBll.SelectUserNotice(Convert.ToInt32(Session["userid"])); if (list != null && list.Count() > 0) { list = list.OrderByDescending(p => p.NoticeID).ToList(); } //修改用户未查看的消息为已经查看 NoticeBll.UpdateUserNotice(Convert.ToInt32(Session["userid"])); return(PartialView("MyNotice", list)); }