RouteConfig.cs 488 B

1234567891011121314151617181920
  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 AppliWebANA {
  8. public class RouteConfig {
  9. public static void RegisterRoutes(RouteCollection routes) {
  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. }