コード例 #1
0
        public IActionResult AllePokemon()
        {
            if (HttpContext.Session.GetInt32("AccountID") == null)
            {
                return(RedirectToAction("Login", "Account"));
            }

            AllePokemonConvert   pvc  = new AllePokemonConvert();
            AllePokemonViewModel apvm = pvc.PokemonToView(pokemonRepo.GetAll());

            return(View(apvm));
        }