Skip to content

Instantly share code, notes, and snippets.

@ErikHen
Created May 1, 2019 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ErikHen/a696ff7278fd22e0b93e41b7ee6379f0 to your computer and use it in GitHub Desktop.
Save ErikHen/a696ff7278fd22e0b93e41b7ee6379f0 to your computer and use it in GitHub Desktop.
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