title: View not finding action in controller in Asp.Net core 3
body: <p>I'm trying to call the action <code>FileUploadAsync</code> from the view. The refresh button that just calls the Index action is working perfectly. The upload button on the view is returning 404 not found... can't think of a reason why.</p>
  
  <p>Controller:</p>
  
  <pre><code>[Area("Admin")]
  public class MetricController : Controller
  {
      public async Task&lt;IActionResult&gt; Index()
      {
          var allBlobs = await _azureBlobService.ListAsync();
          return View(allBlobs);
      }
  
      public async Task&lt;IActionResult&gt; FileUploadAsync()
      {
          var request = await HttpContext.Request.ReadFormAsync();
          if (request.Files == null)
          {
              return BadRequest("files not uploaded");
          }
  
          var files = request.Files;
          if (files.Count == 0)
          {
              return BadRequest("files empty");
          }
  
          await _azureBlobService.UploadAsync(files);
          return RedirectToAction("Index");
      }
  }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>&lt;div class="container-fluid"&gt;
      &lt;div class="btn btn-primary btn-sm"&gt;
          &lt;span&gt;Select Files&lt;/span&gt;&lt;input type="file" id="file" name="selectFiles" class="upload" onchange="DisplayFilesToUpload()" multiple /&gt;
      &lt;/div&gt;
      &lt;p id="FilesToUpload"&gt;&lt;/p&gt;
      @if (Model != null &amp;&amp; Model.Count &gt; 0)
      {
          foreach (var item in Model)
          {
              &lt;div&gt;
                  &lt;p class="text-secondary"&gt;@item&lt;/p&gt;
              &lt;/div&gt;
          }
      }
      &lt;a asp-area="Admin" asp-controller="Metric" asp-action="Index" class="btn btn-outline-primary btn-sm"&gt;
          Refresh
      &lt;/a&gt;
      &lt;a asp-area="Admin" asp-controller="Metric" asp-action="FileUploadAsync" class="btn btn-outline-primary btn-sm"&gt;
          Upload
      &lt;/a&gt;
      &lt;a asp-action="DeleteAll" class="btn btn-outline-danger btn-sm"&gt;
          Delete All
      &lt;/a&gt;
      @section scripts{
          &lt;script type="text/javascript" src="~/js/metrics.js"&gt;&lt;/script&gt;
      }
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Edit:</strong>
  On <code>Startup.cs</code> the routing is deffined as follows</p>
  
  <pre><code>app.UseEndpoints(endpoints =&gt;
              {
                  endpoints.MapControllerRoute(
                      name: "default",
                      pattern: "{area=Agent}/{controller=Article}/{action=Index}/{id?}");
                  endpoints.MapRazorPages();
              });
  </code></pre>
  
  <p>So this sholudn't be the issue...</p>