public ActionResult Edit(monster monsterModel) { using (PokemonModels pokemonModel = new PokemonModels()) { pokemonModel.Entry(monsterModel).State = System.Data.Entity.EntityState.Modified; pokemonModel.SaveChanges(); } return(RedirectToAction("Index")); }