I have an custom admin plugin for which I need to build a dashboard.cshtml page just like the current admin dashboard page. I need to use a @html.Action( tag for showing a custom action in that page. But I found that @Html.Action is not working in my page. I have already made the maproute function which inclue 5 string url for admin plugin and also included this : "DataTokens.Add("area", "admin")" . Everything else in the custom admin plugin is working.
it is not working for only admin views. Outside of admin it is working.
View:
both of the following code not working within admin views:
@Html.Action("UponTotalReport", "Upon")
@Html.Action("UponTotalReport", "/Plugin/Upon/uPonDashboard/")
action in my controller:
[ChildActionOnly]
public ActionResult UponTotalReport()
{
var model = GetUponTotalReportModel();
return PartialView("Nop.Plugin.Upon.Views.Upon.UponTotalReport", model);
}
Can anyone from Nopcommerce team help?