This commit is contained in:
2023-06-12 20:01:07 +02:00
parent edc42e3750
commit 59b4eb582e
43 changed files with 1799 additions and 245 deletions

View File

@@ -0,0 +1,9 @@
export class Pagination {
static getPaginationData(query) {
const page = typeof query.PageNumber === 'string' ? +query.PageNumber : 1;
const pageSize = typeof query.PageSize === 'string' ? +query.PageSize : 10;
const searchNameTerm =
typeof query.SearchNameTerm === 'string' ? query.SearchNameTerm : '';
return { page, pageSize, searchNameTerm };
}
}