This commit aligns the code of `HeroService` `getHeroes()` and `getHero()` methods in `toh-pt5` with that of `toh-pt4`. I.e. it applies the changes from #40419 to `toh-pt5`. PR Close #41234
This commit aligns the code of `HeroService` `getHeroes()` and `getHero()` methods in `toh-pt5` with that of `toh-pt4`. I.e. it applies the changes from #40419 to `toh-pt5`. PR Close #41234