title: What is the difference between routes.MapMvcAttributeRoutes() and context.Routes.MapMvcAttributeRoutes();
body: <p>I have mvc application with additional area named <code>account</code></p>
  
  <p>I am using <code>MvcSiteMapProvider</code> for making breadcrumbs</p>
  
  <p>I have an action which returns details about specific invoice. This action's url is something like <code>localhost/account/profile/invs-histr/details/ID</code>, where ID is the id of invoice to display.</p>
  
  <p>I have <code>accountAreaRegistration.cs</code> for registering areas routes and I have <code>RouteConfig.cs</code> for registering global routes.</p>
  
  <p>Currently, I have to register route for <code>localhost/account/profile/invs-histr/details/ID</code> in both files. If I do not register this route in <code>accountAreaRegistration.cs</code>, I've got <code>404 exception</code>. If I do not register this route in <code>RouteConfig.cs</code>, breadcrumbs are not being rendered.</p>
  
  <p>The begining of <code>RouteConfig.cs</code> file:</p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
  {
      routes.MapMvcAttributeRoutes();
  }
  </code></pre>
  
  <p>And <code>accountAreaRegistration.cs</code>:</p>
  
  <pre><code>public override void RegisterArea(AreaRegistrationContext context)
  {
     context.Routes.MapMvcAttributeRoutes();
  }
  </code></pre>
  
  <p>Can anyone explain me, what is the difference between <code>routes.MapMvcAttributeRoutes()</code> and <code>context.Routes.MapMvcAttributeRoutes()</code>?</p>
  
  <p>Why I should register the route in both files?</p>
  
  <p>Thank you in advance</p>