You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
895 B

  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 DefenseWeb
  8. {
  9. public class RouteConfig
  10. {
  11. public static void RegisterRoutes(RouteCollection routes)
  12. {
  13. routes.IgnoreRoute("{directory}/{resource}.asmx/{*pathInfo}");
  14. routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  15. routes.MapRoute(
  16. name: "Default",
  17. url: "{controller}/{action}/{para1}/{para2}/{para3}/{para4}",
  18. defaults: new { controller = "Login",
  19. action = "Index",
  20. para1 = UrlParameter.Optional,
  21. para2 = UrlParameter.Optional,
  22. para3 = UrlParameter.Optional,
  23. para4 = UrlParameter.Optional
  24. }
  25. );
  26. }
  27. }
  28. }