示例#1
0
        public ActionResult SendMsgRead(int page = 1)
        {
            if (!CheckMemberlogin)
            {
                return RedirectToAction("login");
            }
            else
            {
                leftModel();
                var currentpage = page < 1 ? 1 : page;
                var pagesize = 10;
                var model = new SendMsgViewModel()
                {
                    SendMsg = smd.Get().OrderBy(a => a.sort).ToPagedList(currentpage, pagesize)

                };

                return View(model);
            }
        }
示例#2
0
        public ActionResult SendMsgEdit(int num, int m)
        {
            if (!CheckMemberlogin)
            {
                return RedirectToAction("login");
            }
            else
            {
                sm.num = num;
                sm.isRead = 1;
                smd.Update_Read(sm);

                leftModel();
                var model = new SendMsgViewModel()
                {
                    SendMsg_nopage = smd.Get().ToList().Where(a => a.num == num).OrderByDescending(a => a.wdate)
                };
                return View(model);

            }
        }