/// <summary> /// /// </summary> /// <param name="pageIndex"></param> /// <param name="pageSize"></param> /// <returns></returns> public IActionResult List(int pageIndex = 1, int pageSize = 10) { List <UserModel> lst = new List <UserModel>(); lst = demoService.GetAllList().ToList(); ViewUserModel view = new ViewUserModel() { PageIndex = pageIndex, PageSize = pageSize, TotalPage = 2, TotalRecord = demoService.Count(), Rows = lst }; return(View(view)); }