title: Set Html.BeginForm action
body: <p>The razor helper is not resolving the correct action to submit form.</p>
  
  <h2>How can I set the correct Action in the Razor helper?</h2>
  
  <hr>
  
  <p>So I have the following actions on my <code>PortfolioController</code>:</p>
  
  <pre><code>[HttpGet]
  [Route("profile/edit", Name = "edit-profile")]
  public ActionResult Edit()
  {
      ...
  }
  
  [HttpPost]
  [ValidateAntiForgeryToken]
  public async Task&lt;ActionResult&gt; Edit(EditPortfolioViewModel model)
  {
      ...
  }
  </code></pre>
  
  <p>And my form is like</p>
  
  <pre><code>@using (Html.BeginForm("Edit", "Portfolio", FormMethod.Post, ...)
  </code></pre>
  
  <p>But the form action is being resolved as:</p>
  
  <pre><code>&lt;form action="/profile/edit" ...&gt;
  </code></pre>
  
  <p>Instead of</p>
  
  <pre><code>&lt;form action="/Portfolio/Edit" ...&gt;
  </code></pre>
  
  <p>I know I could simply change the Action method names, but I would like to keep their names.</p>