示例#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));
        }