public List <Info> GetInfoData(int nbLine) { List <Info> result = _dataSet.GetInfosData(); if (nbLine.Equals(999) || result.Count == 0 || result.Count < nbLine) { return(result); } return(result.GetRange(0, nbLine)); }