| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- using System.Web.Routing;
- namespace GreenTree.Nachtragsmanagement.Web
- {
- public class RouteConfig
- {
- public static void RegisterRoutes(RouteCollection routes)
- {
- routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
- routes.IgnoreRoute("{resource}.ashx/{*pathInfo}");
- routes.MapRoute(
- name: "Default",
- url: "{controller}/{action}/{id}",
- defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
- );
- routes.MapRoute(
- "GreenTree.Nachtragsmanagement.Web.Administration.Users",
- "admin/viewusers",
- new
- {
- controller = "Admin",
- action = "ViewUsers"
- },
- new[]
- {
- "GreenTree.Nachtragsmanagement.Web.Controllers"
- }
- );
- routes.MapRoute(
- "GreenTree.Nachtragsmanagement.Web.Administration.Roles",
- "admin/viewroles",
- new
- {
- controller = "Admin",
- action = "ViewRoles"
- },
- new[]
- {
- "GreenTree.Nachtragsmanagement.Web.Controllers"
- }
- );
- routes.MapRoute(
- "GreenTree.Nachtragsmanagement.Web.Administration.Plugins",
- "admin/viewplugins",
- new
- {
- controller = "Admin",
- action = "ViewPlugins"
- },
- new[]
- {
- "GreenTree.Nachtragsmanagement.Web.Controllers"
- }
- );
- }
- }
- }
|