public ActionResult Index(int?index) { int PageSize = 10; int PageIndex = index ?? 1; var list = _manager.GetAll().ToPagedList(PageIndex, PageSize); return(View(list)); }
public ActionResult Index() { string UId = User.Identity.GetUserId(); var RoleName = _userManager.RetrieveRole(UId); if (RoleName == "Admin") { return(RedirectToAction("Index", "Scholarship")); } var list = _manager.GetAll(); return(View(list)); }