title: MVC Controller method not getting called
body: <p>I am learning Async/Await in MVC5. I created this demo app but my controller action method is not getting fired. Its giving "The resource cannot be found." error. Here is the code.</p>
  
  <ol>
  <li><p>_Layout.cshtml view</p>
  
  <pre><code>@Html.ActionLink("ASYNC", "GetNames", "Async")
  </code></pre></li>
  <li><p>GetNames.cshtml view</p>
  
  <pre><code>@Html.ActionLink("Click Me", "GetFirstName", "Async", null,  new{@class = "btn btn-primary" })
  @if (ViewBag.FName != null)
  {
    &lt;p&gt;
       &lt;label&gt;@ViewBag.FName &lt;/label&gt;
    &lt;/p&gt;
  }
  </code></pre></li>
  <li><p>In AsyncController.cs file</p>
  
  <pre><code>public ActionResult GetNames()
  {
      return View();
  }
  
  [HttpPost]
  public async Task&lt;ActionResult&gt; GetFirstName()
  {
      var r = await GetFirstNameFromDB();
      ViewBag.FName = r;
      return View("GetNames");
  }
  public async Task&lt;string&gt; GetFirstNameFromDB()
  {
      try
      {
          var res = await Task.Run(() =&gt;
          {
              Thread.Sleep(3000);
              return "TestFName";
          });
  
          return res;
      }
      catch (Exception)
      {
          return "Error in getting FirstName";
      }
  }
  </code></pre></li>
  </ol>
  
  <p>Now, whenever i click the action link button to call the <code>GetFirstName</code>, it shows <code>The resource cannot be found.</code> error. I'm not sure if it is related to action being <code>async</code> or something else.</p>