I am trying to route asp.net core application.
I have having this scenario:
[Route("/{user}")]
public IActionResult FirstAction(string user)
{
// Code
}
[Route("/{user}/{project}")]
public IActionResult SecondAction(string user, string project)
{
// Code 2
}
Problem i am having is that when user goes to link /something it fires both methods (// Code 1 and // Code 2) but i want only first one to fire.
How can i achieve this?
HttpContext.Request??user=. Same behavior as ongithub.com/{organization}/{project}