public static HtmlString Pager(this HtmlHelper helper, int itemsCount, int pageSize, int maxDisplayedPages,
                                string queryParameterName)
 {
     var model = new ListPager(itemsCount, pageSize, maxDisplayedPages, queryParameterName);
     return new HtmlString(RenderPartialViewToString("_Pager", model, helper.ViewContext));
 }
 public static HtmlString Pager(this HtmlHelper helper, int itemsCount, int pageSize)
 {
     var model = new ListPager(itemsCount, pageSize);
     return new HtmlString(RenderPartialViewToString("_Pager", model, helper.ViewContext));
 }