Esempio n. 1
0
        public async Task <IActionResult> EditPokemon(int id, Pokemon pokemon)
        {
            try
            {
                await _repository.Edit(id, pokemon);

                return(RedirectToAction("Index"));
            }
            catch (Exception ex)
            {
            }
            return(View());
        }