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)); }
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)); }