|
|
@ -97,6 +97,7 @@ namespace myBlazorApp.Pages
|
|
|
|
if (SearchText.IsNullOrEmpty())
|
|
|
|
if (SearchText.IsNullOrEmpty())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
choix = items;
|
|
|
|
choix = items;
|
|
|
|
|
|
|
|
totalItem = items.Count();
|
|
|
|
NavigationManager.NavigateTo("inventory", false);
|
|
|
|
NavigationManager.NavigateTo("inventory", false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -106,8 +107,10 @@ namespace myBlazorApp.Pages
|
|
|
|
pageSize = Filtered.Count() - (currentPage - 1) * 10;
|
|
|
|
pageSize = Filtered.Count() - (currentPage - 1) * 10;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
choix = Filtered.GetRange((currentPage - 1) * 10, pageSize);
|
|
|
|
choix = Filtered.GetRange((currentPage - 1) * 10, pageSize);
|
|
|
|
|
|
|
|
totalItem = Filtered.Count();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
StateHasChanged();
|
|
|
|
StateHasChanged();
|
|
|
|
|
|
|
|
NavigationManager.NavigateTo("inventory", false);
|
|
|
|
return choix;
|
|
|
|
return choix;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|