public IActionResult Index() { var records = applicationsService.GetApplications(); ViewData["records"] = records.ToList(); return(View()); }
public ActionResult Index(int?page) { // Get applications List <DataLinker.Models.ApplicationDetails> result = _applications.GetApplications(LoggedInUser); // Setup back navigation ViewBag.PreviousUrl = Url.Action("Index", "Home"); var pageSize = _configuration.ManageApplicationsPageSize; var pageNumber = page ?? 1; return(View(result.ToPagedList(pageNumber, pageSize))); }