private IList <Alert> InternalSelect(int startRowIndex, int maximumRows) { if (maximumRows == 0) { return(new List <Alert>()); } if (SearchKeys != null) { IList <Alert> alertList = new List <Alert>(); foreach (ServerEntityKey key in SearchKeys) { alertList.Add(Alert.Load(key)); } return(alertList); } AlertSelectCriteria criteria = GetSelectCriteria(); criteria.InsertTime.SortDesc(0); IList <Alert> list = _alertController.GetRangeAlerts(criteria, startRowIndex, maximumRows); return(list); }