Exemplo n.º 1
0
        // GET: /<controller>/
        public IActionResult Index()
        {
            if (string.IsNullOrEmpty(_options.Value.ConnectionString))
            {
                return(RedirectToAction("Reconfigure"));
            }

            var openGames = _gsRepo.GetAll().Result;
            var mm        = new MainMenuViewModel {
                OpenGames = openGames.ToList()
            };

            return(View(mm));
        }