private PagedCommentModel GetPagedCommentModel(CommentSearchCriteria criteria) { var pagedComments = MessageBussinessLogic.Instance.SearchComments(criteria.StartDate, criteria.EndDate, criteria.State, criteria.PagingRequest); var notices = CommentModelTranslator.Instance.Translate(pagedComments.ToList()); var model = new PagedCommentModel(notices, pagedComments.PagingResult); return(model); }
public ActionResult CommentList(CommentSearchCriteria criteria) { var model = GetPagedCommentModel(criteria); return(PartialView("_CommentList", model)); }