The [`TotalPages` property](https://github.com/cortside/cortside.aspnetcore/blob/6328fd4ba5053fc6a3e02397dd7ab3922bf6b2d2/src/Cortside.AspNetCore.Common/Models/PagedResult.cs#L35) is calculated as `TotalItems` divided by `PageSize`, so if `PageSize` is zero an exception is thrown. Ceiling division can also be done without any casts or calls to `Math` methods.
The
TotalPagesproperty is calculated asTotalItemsdivided byPageSize, so ifPageSizeis zero an exception is thrown.Ceiling division can also be done without any casts or calls to
Mathmethods.