I am trying to pass custom data to a Partial View using an instance of ViewDataDictionary
In prior versions the following code worked
@Html.Partial("PartialName", new ViewDataDictionary { { "key", "value" }})
but not in ASP.NET Core.
I have read the documentation but I cannot figure out how to create a working example.
