Exemple #1
0
        public IActionResult AllRanking(DateTime?dataRiferimento = null)
        {
            var ranking = _rankingService.GetAll(dataRiferimento);
            var model   = RankingViewModel.FromEtfs(ranking);

            model.Title  = "Ranking (All ETFs)";
            model.Action = nameof(AllRanking);

            return(View("Ranking", model));
        }
Exemple #2
0
        public IActionResult Ranking(DateTime?dataRiferimento = null)
        {
            var ranking = _rankingService.GetSelezione(dataRiferimento);
            var model   = RankingViewModel.FromEtfs(ranking);

            model.Title  = "Ranking";
            model.Action = nameof(this.Ranking);

            return(View("Ranking", model));
        }