I have a control that manages videos. I'm trying to do these two methods:
[Route("video/categoria/{categoria}")]
public async Task<ActionResult> Index(string categoria)
{
}
[Route("video/categoria/new-movies")]
public async Task<ActionResult> Index()
{
}
When executing the url /video/categoria/new-movies
it falls on the [Route("video/categoria/{categoria}")]
path by placing the new-movies
value within the category variable.
I wonder if there is some form of it falling on the other route.
If it does not exist, is it best to treat everything in the same method?
I'm looking for a more technically correct solution to avoid future problems and make maintenance easier.