public IActionResult Index(int pageIndex = 1) { #region Pager. if (pageIndex < 0) { pageIndex = 1; } Pager pager = new Pager(); pager.PageIndex = pageIndex; pager.PageSize = 100; pager.SortExpression = "Name"; pager.SortDirection = "DESC"; #endregion var data = companyService.GetList(pager); return(View(data)); }