public ActionResult Update(int id, string nome, int idCategoria) { Pokemon pokemon = new Pokemon(); pokemon.Id = id; pokemon.Nome = nome; pokemon.IdCategoria = idCategoria; repositorio.Alterar(pokemon); return(RedirectToAction("Index")); }
public ActionResult Update(int id, string nome, int idCategoria) { Pokemon pokemon = new Pokemon(); pokemon.Id = id; pokemon.Nome = nome; pokemon.IdCategoria = idCategoria; repositorio.Alterar(pokemon); return(RedirectToAction("Index")); }