mirror of
https://github.com/rudollee/LearningMVC.git
synced 2025-06-07 16:06:21 +00:00
19 lines
381 B
C#
19 lines
381 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace SportsStore.WebUI.Models
|
|
{
|
|
public class PagingInfo
|
|
{
|
|
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); }
|
|
}
|
|
}
|
|
} |