public bool UpdatePokemon(Pokemon newPokemon) { _local.Attach(newPokemon); _local.Entry(newPokemon).State = EntityState.Modified; _local.SaveChanges(); return(true); }