Example #1
0
        public async Task <IActionResult> Index(int page = 1)
        {
            var pagedList = await PagedList <Employee> .AsPagedAsync(_context.Employees.Include("BusinessEntity"), page, _pageSize);

            return(View(pagedList));
        }