/// <summary> /// Builds the entire html for the specified page index / total pages. /// </summary> /// <param name="pageIndex">Index of the page.</param> /// <param name="totalPages">The total pages.</param> /// <param name="settings">The settings for the pager.</param> /// <param name="urlBuilder">The URL builder.</param> /// <returns></returns> public string Build(int pageIndex, int totalPages, PagerSettings settings, Func <int, string> urlBuilder) { Pager pager = Pager.Get(pageIndex, totalPages, settings); return(Build(pager, pager.Settings, urlBuilder)); }
/// <summary> /// Builds the entire html for the specified page index / total pages. /// </summary> /// <param name="pageIndex">Index of the page.</param> /// <param name="totalPages">The total pages.</param> /// <param name="urlBuilder">The URL builder.</param> /// <returns></returns> public string Build(int pageIndex, int totalPages, Func <int, string> urlBuilder) { Pager pager = Pager.Get(pageIndex, totalPages, PagerSettings.Default); return(Build(pager, PagerSettings.Default, urlBuilder)); }