public ActionResult List(int page = 1) { IEnumerable<UserViewModel> result; using (_connection = Utilities.GetOpenConnection()) { var totalRecords = _connection.RecordCount<UserViewModel>(); result = _connection.GetListPaged<UserViewModel>(page, 10, null, "intAge desc").ToPagedList(page, 10, totalRecords); } return View(result); }