Esempio n. 1
0
        private IEnumerable <EtfDisplay> GetAll(DateTime data, bool shorts, bool distributions, bool onlyEtcs = false)
        {
            int index   = 0;
            var ranking = onlyEtcs ? _rankingService.GetAllEtcs(data, shorts, distributions) :
                          _rankingService.GetAll(data, shorts, distributions);

            return(ranking.Etfs
                   .OrderByDescending(e => e.MediaTotRet)
                   .Select(e => new EtfDisplay(++index, e)));
        }