Ejemplo n.º 1
0
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapContentRoute <Models.TestItemBase>();
     context.MapRoute("hello",
                      "Tests/{controller}/{action}",
                      new { action = "Index" },
                      new { area = new NonContentConstraint() }
                      );
 }
Ejemplo n.º 2
0
 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" }
                      );
 }
Ejemplo n.º 3
0
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapContentRoute <Models.Pages.BlogBase>();
 }
Ejemplo n.º 4
0
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapContentRoute <Models.AnalyticsPartBase>();
 }