public ActionResult Delete(Pokemon pokemon) { var service = new PokemonService(); service.Deletar(pokemon.Id); return(View("Index", service.FindAll())); }
public ActionResult Delete(int id) { var service = new PokemonService(); service.Deletar(id); var all = service.FindAll(); Session["ListaPessoas"] = all; return(View("Index", all)); }