コード例 #1
0
        public SearchPageInfo <ExceptionLogInfo> GetLogs(PageInfo pageInfo)
        {
            if (string.IsNullOrEmpty(pageInfo.OrderField))
            {
                throw ExceptionHelper.ThrowBusinessException("分页获取数据必须指定排序列");
            }

            SearchPageInfo <ExceptionLogInfo> seachPage = new SearchPageInfo <ExceptionLogInfo>();

            seachPage.PageInfo = pageInfo;
            seachPage          = _logRepository.GetPageEntities(seachPage);
            return(seachPage);
        }