// Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification // for details on configuring this project to bundle and minify static web assets. // Write your JavaScript code. /** * Change page size for pagination * @param {number} newSize - The new page size */ function changePageSize(newSize) { const url = new URL(window.location); url.searchParams.set('pageSize', newSize); url.searchParams.set('pageNumber', '1'); // Reset to page 1 when changing page size window.location.href = url.toString(); }