20 lines
520 B
C#
20 lines
520 B
C#
|
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}",
|
|||
|
defaults: new { controller = "Admin", action = "Index", id = UrlParameter.Optional }
|
|||
|
);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|