Created
May 1, 2019 14:18
-
-
Save ErikHen/a696ff7278fd22e0b93e41b7ee6379f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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