Пример #1
0
        public ActionResult CommentResult(int page = 1)
        {
            CommentManageSearch search = new CommentManageSearch()
            {
                Page = page
            };
            var items = jokeLogic.CommentManageSearch(search);

            return(View(items));
        }
Пример #2
0
        public PageSearchResult <T_Comment> CommentManageSearch(CommentManageSearch search)
        {
            Sql where = Sql.Builder.Where("1=1").OrderBy("ID Desc");
            var page       = this.jokeDatabase.Page <T_Comment>(search.Page, search.PageSize, where);
            var pageResult = new PageSearchResult <T_Comment>()
            {
                Items      = page.Items,
                Page       = search.Page,
                PageSize   = search.PageSize,
                TotalCount = (int)page.TotalItems
            };

            return(pageResult);
        }
Пример #3
0
 public PageSearchResult<T_Comment> CommentManageSearch(CommentManageSearch search)
 {
     return commentData.CommentManageSearch(search);
 }
Пример #4
0
 public PageSearchResult <T_Comment> CommentManageSearch(CommentManageSearch search)
 {
     return(commentData.CommentManageSearch(search));
 }
Пример #5
0
 public ActionResult CommentResult(int page=1)
 {
     CommentManageSearch search = new CommentManageSearch() { Page=page };
     var items = jokeLogic.CommentManageSearch(search);
     return View(items);
 }