phronCare/Domain/Generics/PagedResult.cs
Leandro Hernan Rojas d5722495ae
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 5m16s
Add Update API UI Customers CRUD
2025-04-14 17:50:25 -03:00

12 lines
359 B
C#

namespace Domain.Generics
{
public class PagedResult<T>
{
public IEnumerable<T> Items { get; set; } = Enumerable.Empty<T>();
public int TotalItems { get; set; }
public int Page { get; set; }
public int PageSize { get; set; }
public int TotalPages => (int)Math.Ceiling((double)TotalItems / PageSize);
}
}