title: Ajax.ActionLink POST doesn't work in ASP.NET MVC 5
body: <p>A quick summary of the situation:</p>
  
  <p>In my View I have this piece of Razor code:</p>
  
  <pre><code>@{
  ViewBag.Title = "Index";
  
  AjaxOptions options = new AjaxOptions();
  options.HttpMethod = "POST";
  }
  
  ...
  
  @Ajax.ActionLink("Linkname", "CreateChallenge", new { challengedId = Model.UserId },options);
  </code></pre>
  
  <p>Than in my controller:</p>
  
  <pre><code>[Authorize]
  [HttpPost]
      public string CreateChallenge(string challengedId)
      {
          ChallengeRepository.CreateChallenge(challengedId);
          return "Sendend!";
      }
  </code></pre>
  
  <p>I get an 'Resource not found' error when I click the link but when I remove the [HttpPost] attribute everything works fine. But I want a POST method. I have looked around and found some similar problems but none of the solutions worked for me.</p>