public IActionResult Index() { var groupedBlocksAndSets = _setService.GetGroupedBlocksAndSets(); var sortedGroupedBlocksAndSets = groupedBlocksAndSets.OrderByDescending(s => s.ReleaseDate).ToList(); return(View(sortedGroupedBlocksAndSets)); }
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)); }