title: How to navigate to an ASP.NET Core MVC controller in Blazor app?
body: <p>I have <code>DownloadController.cs</code> to <code>Controllers/DownloadController</code> with the following method:</p>
  
  <pre><code>public async Task&lt;ActionResult&gt; DownloadFile(string key) 
  {
      return File(...);
  }
  </code></pre>
  
  <p>Also, in my <code>Startup.cs</code> I have configured the following endpoints:</p>
  
  <pre><code>app.UseEndpoints(endpoints =&gt;
  {
      endpoints.MapControllerRoute(
          name: "default".
          pattern: "{controller}/{action}");
      endpoints.MapControllers();
      endpoints.MapBlazorHub();
      endpoints.MapFallbackToPage("/_Host");
  });
  </code></pre>
  
  <p>So how in a Blazor view can I navigate to the controller action? I was looking for something similar to this:</p>
  
  <pre><code>@Html.ActionLink(...);
  </code></pre>