예제 #1
0
        public IActionResult Index()
        {
            var groupedBlocksAndSets = _setService.GetGroupedBlocksAndSets();

            var sortedGroupedBlocksAndSets = groupedBlocksAndSets.OrderByDescending(s => s.ReleaseDate).ToList();

            return(View(sortedGroupedBlocksAndSets));
        }
예제 #2
0
        public IActionResult Index()
        {
            var groupedBlocksAndSets = _setService.GetGroupedBlocksAndSets();

            var sortedGroupedBlocksAndSets = groupedBlocksAndSets.OrderByDescending(s => s.ReleaseDate).ToList();
            var newestCurrentSet           = _setService.GetNewestCurrentSet();

            var allSets = new AllSets(newestCurrentSet, sortedGroupedBlocksAndSets);

            return(View(allSets));
        }