Esempio n. 1
0
 public ActionResult CommentList(long id,string orderType, int? p)
 {
     var pageNo = (p ?? 1) > 0 ? (p ?? 1) : 1;
     var pager = new Pager { PageNo = pageNo, PageSize = Configinfo.CommentPagerCount };
     pager = MyService.GetFloorCommentPaging(pager, id, orderType);
     var commentListViewModel = new CommentListViewModel
                                {
                                    CommentPagerInfo = pager
                                };
     return PartialView("_CommentList", commentListViewModel);
 }
Esempio n. 2
0
 public ActionResult GetCommentListByOrderId(long id,string orderType, long orderid)
 {
     var pager = new Pager { PageSize = Configinfo.CommentPagerCount };
     pager = MyService.GetFloorCommentPagingByOrderId(pager, id, orderid, orderType);
     var commentListViewModel = new CommentListViewModel
     {
         CommentPagerInfo = pager
     };
     return PartialView("_CommentList", commentListViewModel);
 }
Esempio n. 3
0
 public ActionResult UserCommentList(int p, int size = 20)
 {
     var pager = new Pager { PageNo = p, PageSize = size };
     pager = MyService.GetReplyPaging(pager, 1, 0, user: UserInfo.userid);
     var commentListViewModel = new CommentListViewModel
     {
         CommentPagerInfo = pager
     };
     return PartialView("_UserComment", commentListViewModel);
 }