public ViewResult Index(ReportedCommentSearchQuery query)
        {
            ViewData["results"] = _adminService.Search(query);

            return(View(query));
        }
Esempio n. 2
0
        public IPagedList <ReportedComment> Search(ReportedCommentSearchQuery query)
        {
            var reportedComments = _session.QueryOver <ReportedComment>();

            return(reportedComments.OrderBy(x => x.Id).Desc.Paged(query.Page));
        }