Ejemplo n.º 1
0
        public ActionResult Delete(Pokemon pokemon)
        {
            var service = new PokemonService();

            service.Deletar(pokemon.Id);

            return(View("Index", service.FindAll()));
        }
Ejemplo n.º 2
0
        public ActionResult Delete(int id)
        {
            var service = new PokemonService();

            service.Deletar(id);
            var all = service.FindAll();

            Session["ListaPessoas"] = all;

            return(View("Index", all));
        }