private PagedSystemNoticeModel GetPagedSystemNoticeModel(SystemNoticeSearchCriteria criteria) { var pagedSystemNotice = MessageBussinessLogic.Instance.SearchSystemNotice(criteria.StartDate, criteria.EndDate, criteria.PagingRequest); var notices = SystemNoticeModelTranslator.Instance.Translate(pagedSystemNotice.ToList()); var model = new PagedSystemNoticeModel(notices, pagedSystemNotice.PagingResult); return(model); }
public ActionResult NoticeList(SystemNoticeSearchCriteria criteria) { var model = GetPagedSystemNoticeModel(criteria); return(PartialView("_NoticeList", model)); }