Multiple controller types were found that match the URL. ASP.Net MVC
<p>This is regarding defining routes using route attribute. I have two controllers</p>

<p>1st Controller</p>

<pre><code>[AllowAnonymous]
[Route("Member/Login")]
public ActionResult Login(string returnUrl)
{
    ViewBag.ReturnUrl = returnUrl;
    return View();
}
</code></pre>

<p>2nd Controller</p>

<pre><code>[Route("{CategoryURL}/{Keywords}")]
public ActionResult BrowseProducts(string CategoryURL, string Keywords)
{

}
</code></pre>

<p>I am getting below error If try to access URL xyz.net/Member/Login</p>

<p><strong>Multiple controller types were found that match the URL. This can happen if attribute routes on multiple controllers match the requested URL.
The request has found the following matching controller types:
XYZ.Controllers.AccountController
XYZ.Controllers.CoursesController</strong></p>

<p>I am aware that I have Optional Parameters for second controller, hence when I try to access xyz.net/Member/Login, it finds two action methods to go for and getting the Multiple controller error. </p>

<p>My question is, how could I fix this issue without changing my current Routings. I tried Order, Precedence but nothing worked out.</p>