예제 #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() }
                      );
 }
예제 #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" }
                      );
 }
예제 #3
0
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapContentRoute <Models.Pages.BlogBase>();
 }
예제 #4
0
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapContentRoute <Models.AnalyticsPartBase>();
 }