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