Where is @Html.Action in Asp.net Core?
I can see @Html.ActionLink but not a direct call to an Action as before.
Was it replaced by ViewComp
For Net Core 2.0
using Microsoft.AspNetCore.Mvc.Infrastructure;
replace
// var actionSelector = GetServiceOrFail(currentHttpContext);
var actionSelector = GetServiceOrFail(currentHttpContext);
and
// var actionDescriptor = actionSelector.DecisionTree.Select(routeValues).First();
var actionDescriptor = actionSelector.ActionDescriptors.Items.Where(i => i.RouteValues["Controller"] == controller && i.RouteValues["Action"] == action).First();