public static PageQuery GetPageQueryMapping( string[] searchFields, int pageIndex = PageQuery.DefaultIndexFrom, int pageSize = PageQuery.DefaultPageSize, string[] sorts = null, string keyword = null, PageIndexFrom indexFrom = null) { if (searchFields == null || !searchFields.Any()) { throw new ArgumentNullException(nameof(searchFields)); } return(PageQuery.Get(pageIndex, pageSize, sorts, keyword, indexFrom, searchFields)); }