using System;

namespace SportsStore.WebUI.Models
{
    public class PagingInfo
    {
        public int totalItems { get; set; }
        public int itemsPerPage { get; set; }
        public int currentPage { get; set; }

        public int GetTotalPages
        {
            get { return (int)Math.Ceiling((decimal)totalItems / itemsPerPage); }
        }
    }
}