2021-09-08 15:09:02 +10:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Web;
|
|
|
|
|
|
|
|
|
|
namespace SportsStore.WebUI.Models
|
|
|
|
|
{
|
2021-09-08 15:13:15 +10:00
|
|
|
|
public class PagingInfo
|
2021-09-08 15:09:02 +10:00
|
|
|
|
{
|
|
|
|
|
public int TotalItems { get; set; }
|
|
|
|
|
public int ItemsPerPage { get; set; }
|
|
|
|
|
public int CurrentPage { get; set; }
|
|
|
|
|
|
|
|
|
|
public int TotalPages
|
|
|
|
|
{
|
|
|
|
|
get { return (int)Math.Ceiling((decimal)TotalItems / ItemsPerPage); }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|