Having a child action like this
public ActionResult Summaries(IPublishedContent currentPage)
{
//...
}
I would need to pass from the masterpage the @CurrentPage to it, so I would need to use something like this
@Html.Action("Summaries", "Blog", CurrentPage )
But as @Html.Action cannot be dispatched dynamically I would need to cast CurrentPage and I'm lost there as then I wouldn't be able to use IPublishedContent but I would need a type to cast to.
Any help?
Thanks