Asp action route data
<p>In the old version of MVC 5 I could do this to pass route parameters</p>

<pre><code>@Html.ActionLink("New item", "Suggestion", new ProductSuggestion() { Username = Model.Username }, new { @class = "btn btn-default" })
</code></pre>

<p>I am trying to get this to work with the new asp-action method and I figgured out I could do this as a workaround. But what is the correct syntax for this?</p>

<pre><code>    @{ 
        var a = new Dictionary&lt;string, string&gt; { { "Username", Model.Username } };
    }

    &lt;a asp-action="Suggestion" asp-all-route-data="a" class="btn btn-default"&gt;New item&lt;/a&gt;
</code></pre>