BootstrapAdmin11/Bootstrap.Admin/App_Start/RouteConfig.cs

20 lines
519 B
C#
Raw Normal View History

2016-10-20 17:55:29 +08:00
using System.Web.Mvc;
using System.Web.Routing;
namespace Bootstrap.Admin
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
2016-10-21 16:35:26 +08:00
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
2016-10-20 17:55:29 +08:00
);
}
}
}