﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CarsWebsite.Infrastructure
{
    public class PagingInfo
    {

        public int PageId { get; set; } = 1;
        public int PageSize { get; set; } = 3;
        public int ItemsTotal { get; set; } = -1;
        public int TotalPages { get { return (int)Math.Ceiling((decimal)ItemsTotal/PageSize); } }
    }
}