title: How to create an ActionLink to a custom route in ASP.NET MVC?
body: <p>I have a custom route inside an area:</p>
  
  <pre><code>[RouteArea("MyArea")]  
  public class MyController: Controller
  {
      [Route("~/my-action")]
      public ActionResult MyAction()
      {
          return View();
      }
  }
  </code></pre>
  
  <p>Before adding the <strong>Route</strong> and <strong>RouteArea</strong> attributes, I accessed this action through the following route:</p>
  
  <pre><code>~/MyArea/MyController/MyAction
  </code></pre>
  
  <p>Now that I added this attributes, I am able to access it just through this:</p>
  
  <pre><code>~/my-action
  </code></pre>
  
  <p>I used to have an ActionLink which was pointing to this action and it looked like this:</p>
  
  <pre><code>@Html.ActionLink("Link To My Action", "MyAction", "My", new { Area = "MyArea" }, new { })
  </code></pre>
  
  <p>Now this ActionLink is no longer working. How can I fix  it?</p>