public override void RegisterArea(AreaRegistrationContext context) { context.MapContentRoute<Models.TestItemBase>(); context.MapRoute("hello", "Tests/{controller}/{action}", new { action = "Index" }, new { area = new NonContentConstraint() } ); }
public override void RegisterArea(AreaRegistrationContext context) { context.MapContentRoute<Models.TestItemBase>(); context.MapRoute("hello", "Tests/{controller}/{action}/{id}", new { action = "Index", id = UrlParameter.Optional }, new { area = new NonContentConstraint() }, new [] { "N2.Templates.Mvc.Areas.Tests.Controllers" } ); }
public override void RegisterArea(AreaRegistrationContext context) { context.MapContentRoute<Models.AnalyticsPartBase>(); }
public override void RegisterArea(AreaRegistrationContext context) { context.MapContentRoute<Models.Pages.BlogBase>(); }