public IActionResult Index() { var consoleList = _consoleRepository.GetAllConsoles(); if (consoleList != null) { _logger.LogInformation(LoggerMessageDisplay.GenresListed); } else { _logger.LogInformation(LoggerMessageDisplay.NoGenresInDB); } return(View(consoleList)); }
public IActionResult Index() { var consoles = _consoleRepository.GetAllConsoles().OrderBy(c => c.Name); return(View(consoles)); }