public static ComponentBuilder <MvcBootstrapConfig <TModel>, Pagination> Pagination <TComponent, TModel>( this BootstrapHelper <MvcBootstrapConfig <TModel>, TComponent> helper, IEnumerable <KeyValuePair <string, ActionResult> > textAndResults, int?activePageNumber = null, int?firstPageNumber = null) where TComponent : Component, ICanCreate <Pagination> { return(new ComponentBuilder <MvcBootstrapConfig <TModel>, Pagination>(helper.GetConfig(), helper.Pagination().GetComponent()) .AddPages(textAndResults, activePageNumber, firstPageNumber)); }