PageRenderTime 48ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/SLSTOffCampusWeb/App_Start/RouteConfig.cs

https://bitbucket.org/jrobertshawe/off-campus-server
C# | 23 lines | 21 code | 2 blank | 0 comment | 0 complexity | 73c142553ece413423aac7871452002a MD5 | raw file
  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 SLSTOffCampusWeb
  8. {
  9. public class RouteConfig
  10. {
  11. public static void RegisterRoutes(RouteCollection routes)
  12. {
  13. routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  14. routes.MapRoute(
  15. name: "Default",
  16. url: "{controller}/{action}/{id}",
  17. defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
  18. );
  19. }
  20. }
  21. }