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.

19 lines
566 B

2 years ago
  1. using System.Web.Mvc;
  2. using System.Web.Routing;
  3. namespace WebSite
  4. {
  5. public class RouteConfig
  6. {
  7. public static void RegisterRoutes(RouteCollection routes)
  8. {
  9. routes.IgnoreRoute("{directory}/{resource}.asmx/{*pathInfo}");
  10. routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  11. routes.MapRoute(
  12. name: "Default",
  13. url: "{controller}/{action}/{id}",
  14. defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
  15. );
  16. }
  17. }
  18. }