ASP.Net Core routes with Web API
<p>I have a Web API Controller with a method called <code>GetHeroes()</code> and it doesn't get called by the front end. I can get a simple <code>Get()</code> method to work but there doesn't seem to be a way to name methods and have these methods called.</p>

<p><strong>CharactersController.cs</strong></p>

<pre><code>[Route("api/{controller}/{action}")]
public class CharactersController : Controller
{

    private readonly ICharacterRepository _characterRepository;

    public CharactersController(ICharacterRepository characterRepository)
    {
        _characterRepository = characterRepository;
    }


    [HttpGet]
    public IEnumerable&lt;Character&gt; GetHeroes()
    {
        return _characterRepository.ListAll().OrderBy(x =&gt; x.Name);
    }
}
</code></pre>

<p><strong>data.service.ts</strong></p>

<pre><code>    getItems() {
    this.http.get('api/characters/getheroes').map((res: Response) =&gt; res.json()).subscribe(items =&gt; {
        this._collectionObserver.next(items);
    });
}
</code></pre>