public IActionResult Manage(int?pageNum) { var manufacturers = manufacturersService.GetAllForManaging(); ViewBag.PageNavigation = manufacturers.Count() > GlobalConstants.MaximumCountOfRowEntitiesOnSinglePageForManaging ? "Manage" : null; var pagedAmmount = manufacturers.ToPagedList(pageNum ?? 1, GlobalConstants.MaximumCountOfRowEntitiesOnSinglePageForManaging); return(View(pagedAmmount)); }