private static void LogIfExcessivePageSize(int pageSize, PageSizer pageSizeType, ILogger logger)
 {
     if (pageSize >= MaxPageSize)
     {
         logger.Warning($"Request asks with a paging type of: {pageSizeType.ToString()}, pagesize of: {pageSize}, which is larger than the max of: {MaxPageSize}");
     }
 }
        public static HtmlString SimplePageSizer(this HtmlHelper helper, string href, int currentPageSize, int pageCount, string cssClass)
        {
            if (pageCount == 0 || pageCount == 1)
            {
                return(new HtmlString(""));
            }

            PageSizer pageSizer = new PageSizer(href, currentPageSize, cssClass);

            return(new HtmlString(pageSizer.ToString()));
        }