RouteConfig.cs 721 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. using System.Web.Routing;
  7. namespace GreenTree.Nachtragsmanagement.Web
  8. {
  9. public class RouteConfig
  10. {
  11. public static void RegisterRoutes(RouteCollection routes)
  12. {
  13. routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  14. routes.IgnoreRoute("{resource}.ashx/{*pathInfo}");
  15. routes.MapRoute(
  16. name: "Default", // Route name
  17. url: "{controller}/{action}/{id}", // URL with parameters
  18. defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
  19. );
  20. }
  21. }
  22. }