public async Task <IActionResult> Add(Hero hero) { var newHero = await _heroesRepository.Add(hero); return(Created($"http://localhost:5000/api/heroes/{newHero.Id}", newHero)); }
public async Task <IActionResult> Update(Hero hero) { await _heroesRepository.Update(hero); return(Accepted()); }