public ActionResult Index(MessageOpenApplicationCondition condition)
        {
            var info   = service.SearchNews(condition);
            var models = new PagedList <MessageOpenApplicationInfo>(info, info.Paging);

            return(View(PluginHelper.GetViewPath(this.GetType(), "Index"), models));
        }
        public IPagedList <MessageOpenApplicationInfo> SearchNews(MessageOpenApplicationCondition condition)
        {
            var query = repository.Table;

            query = query.Where(t => t.IsDelete == false).OrderByDescending(t => t.CreateDate);
            return(new PagedList <MessageOpenApplicationInfo>(query, condition.PageIndex, condition.PageSize));
        }