diff --git a/src/Controllers/HeroController.cs b/src/Controllers/HeroController.cs index 33c3031..70d0d69 100644 --- a/src/Controllers/HeroController.cs +++ b/src/Controllers/HeroController.cs @@ -59,14 +59,6 @@ public ActionResult PutHero(int id, Hero hero) } - // POST: api/Hero - // To protect from overposting attacks, see https://go.microsoft.com/fwlink/?linkid=2123754 - [HttpPost] - public ActionResult PostHero(Hero hero) - { - _heroRepository.Add(hero); - return Ok(hero); - } // DELETE: api/Hero/5 [HttpDelete("{id}")]