Fix: Rename Generic.CL folder to flat structure, update csproj and references

This commit is contained in:
2026-08-07 02:39:46 +03:00
commit 3650c36a23
59 changed files with 2516 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Generic.Contracts.Generics;
namespace Generic.Services;
public static class PaginationExtension
{
public static IQueryable<T> Paginate<T>(this IQueryable<T> query, Pagination pagination)
{
if (pagination.CurrentPage.HasValue && pagination.PageSize.HasValue)
return query
.Skip((pagination.CurrentPage.Value - 1) * pagination.PageSize.Value)
.Take(pagination.PageSize.Value);
else
return query;
}
}