|
|
|
@ -27,24 +27,6 @@ namespace WF_WebAdmin.Pages
|
|
|
|
|
maxPage += 1;
|
|
|
|
|
List<Quote> quotesList = await QuoteService.getSomeQuote(MaxValue, pages);
|
|
|
|
|
quotes = quotesList.ToArray();
|
|
|
|
|
buildPagination();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void buildPagination()
|
|
|
|
|
{
|
|
|
|
|
if (pages == 1)
|
|
|
|
|
{
|
|
|
|
|
pagination = __builder =>
|
|
|
|
|
{
|
|
|
|
|
__builder.AddMarkupContent(0, @"<button>1</button>
|
|
|
|
|
<button onClick='pageNumero(pages+1)'>@pages+1</button>
|
|
|
|
|
<button onClick='pageNumero(pages+2)'>@pages+2</button>
|
|
|
|
|
<p>...</p>
|
|
|
|
|
<button onClick='pageNumero(maxPage)'>@maxPage</button>
|
|
|
|
|
<button onClick='pageSuivante()'>></button>");
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected async Task pageSuivante()
|
|
|
|
@ -54,7 +36,7 @@ namespace WF_WebAdmin.Pages
|
|
|
|
|
quotes = quotesList.ToArray();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected async Task pagePrécédente()
|
|
|
|
|
protected async Task pagePrecedente()
|
|
|
|
|
{
|
|
|
|
|
if (pages > 1)
|
|
|
|
|
{
|
|
|
|
|