Skip to content

Instantly share code, notes, and snippets.

How To Make A Block Use Multiple Views ? A Partial View Controller Explained - 13
public override ActionResult Index(ColourBlock currentBlock)
{
var displayTag = GetDisplayOptionTag();
return PartialView("Index", new ColourBlockViewModel(currentBlock, EpiserverDependencies, displayTag));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment