public ActionResult Editar(int id) { var service = new PokemonService(); var pokemon = service.BuscarPorID(id); return(View("Delete", pokemon)); }
public ActionResult Check(int id) { var service = new PokemonService(); var pokemon = service.BuscarPorID(id); pokemon.CurrentHave = !pokemon.CurrentHave; service.Salvar(pokemon); var all = service.FindAll(); Session["ListaPessoas"] = all; return(View("Index", all)); }