Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
namespace AlloyDemo.Controllers
{
[TemplateDescriptor(Inherited = true)]
public class DefaultPageController : PageControllerBase<SitePageData>
{
[EditableContentOutputCache]
public ViewResult Index(SitePageData currentPage)
{
var model = CreateModel(currentPage);
return View($"~/Views/{currentPage.GetOriginalType().Name}/Index.cshtml", model);
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.