Example #1
0
        public async Task <IActionResult> Add(Hero hero)
        {
            var newHero = await _heroesRepository.Add(hero);

            return(Created($"http://localhost:5000/api/heroes/{newHero.Id}", newHero));
        }