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