All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 5m23s
13 lines
360 B
C#
13 lines
360 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);
|
|
}
|
|
}
|