public ViewResult Index(ReportedCommentSearchQuery query) { ViewData["results"] = _adminService.Search(query); return(View(query)); }
public IPagedList <ReportedComment> Search(ReportedCommentSearchQuery query) { var reportedComments = _session.QueryOver <ReportedComment>(); return(reportedComments.OrderBy(x => x.Id).Desc.Paged(query.Page)); }