| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- 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"
- }
- );
- routes.MapRoute(
- "GreenTree.Nachtragsmanagement.Web.Deviation.Deviations",
- "admin/viewdeviations",
- new
- {
- controller = "Deviation",
- action = "ViewDeviations"
- },
- new[]
- {
- "GreenTree.Nachtragsmanagement.Web.Controllers"
- }
- );
- }
- }
- }
|