RouteConfig.cs 709 B

123456789101112131415161718192021
  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. public class RouteConfig {
  9. public static void RegisterRoutes(RouteCollection routes) {
  10. routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  11. routes.IgnoreRoute("{resource}.ashx/{*pathInfo}");
  12. routes.MapRoute(
  13. name: "Default", // Route name
  14. url: "{controller}/{action}/{id}", // URL with parameters
  15. defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
  16. );
  17. }
  18. }
  19. }