コード例 #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.AnalyticsPartBase>();
 }
コード例 #4
0
ファイル: BlogAreaRegistration.cs プロジェクト: n2cms/n2cms
        public override void RegisterArea(AreaRegistrationContext context)
        {
			context.MapContentRoute<Models.Pages.BlogBase>();
        }