@for (int i = 1; i <= ViewBag.maxPage; i++) { if (ViewBag.pageIndex == i) {
  • @i
  • } else {
  • @i
  • } }