Exemplo n.º 1
0
        public ActionResult SendPhotoRead(int page = 1)
        {
            if (!CheckMemberlogin)
            {
                return RedirectToAction("login");
            }
            else
            {
                leftModel();
                var currentpage = page < 1 ? 1 : page;
                var pagesize = 10;
                var model = new SendPhotoViewModel()
                {
                    SendMsg = spd.Get().OrderBy(a => a.sort).ToPagedList(currentpage, pagesize)

                };

                return View(model);
            }
        }
Exemplo n.º 2
0
        public ActionResult SendPhotoEdit(int num, int m)
        {
            if (!CheckMemberlogin)
            {
                return RedirectToAction("login");
            }
            else
            {
                sp.num = num;
                sp.isRead = 1;
                spd.Update_Read(sp);

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

            }
        }