public int GetTotalPage(int pageSize) { int totalPessoas = PersonDAO.GetTotal(); double totalPage = (double)totalPessoas / (double)pageSize; return((int)Math.Ceiling(totalPage)); }