public static ComponentBuilder <TConfig, Pagination> AddPages <TConfig>(this ComponentBuilder <TConfig, Pagination> builder, IEnumerable <string> hrefs, int?activePageNumber = null, int?firstPageNumber = null) where TConfig : BootstrapConfig { return(builder.AddPages(hrefs.Select(x => new KeyValuePair <string, string>(null, x)), activePageNumber, firstPageNumber)); }
public static ComponentBuilder <MvcBootstrapConfig <TModel>, Pagination> AddPages <TModel>( this ComponentBuilder <MvcBootstrapConfig <TModel>, Pagination> builder, IEnumerable <ActionResult> results, int?activePageNumber = null, int?firstPageNumber = null) { return(builder.AddPages(results.Select(x => new KeyValuePair <string, ActionResult>(null, x)), activePageNumber, firstPageNumber)); }