Exemplo n.º 1
0
 public override void RegisterRoutes(AreaRegistrationContext regContext)
 {
     regContext.MapRoute("lyniconembedded",
         "Lynicon/Embedded/{*innerUrl}",
         new { controller = "Embedded", action = "Index" });
     // Get dynamically generated content
     regContext.MapRoute("lynicondynamic",
         "Lynicon/Dynamic/{action}/{urlTail}",
         new { controller = "Dynamic" });
     regContext.AddDataRoute<List<User>>("lyniconusers",
         "Lynicon/Users",
         new { controller = "User", action = "List", view = "LyniconListDetail", listView = "UserList" },
         new { },
         new { top = "15" }, null);
     regContext.MapRoute("lyniconadmin",
         "Lynicon/{controller}/{action}",
         new { controller = "Ajax", action = "Index" },
         new { controller = "Ajax|Admin|FileManager|Items|Login|Nav|Ui|Upload|UrlManager|Version" }
     );
 }