public ActionResult CommentResult(int page = 1) { CommentManageSearch search = new CommentManageSearch() { Page = page }; var items = jokeLogic.CommentManageSearch(search); return(View(items)); }
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); }
public PageSearchResult<T_Comment> CommentManageSearch(CommentManageSearch search) { return commentData.CommentManageSearch(search); }
public PageSearchResult <T_Comment> CommentManageSearch(CommentManageSearch search) { return(commentData.CommentManageSearch(search)); }
public ActionResult CommentResult(int page=1) { CommentManageSearch search = new CommentManageSearch() { Page=page }; var items = jokeLogic.CommentManageSearch(search); return View(items); }