12 lines
395 B
C#
12 lines
395 B
C#
public static void RegisterRoutes(RouteCollection routes)
|
|
{
|
|
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
|
|
|
routes.MapRoute(
|
|
"Default",
|
|
"{controller}/{action}/{id}",
|
|
new { controller = "Home", action = "Index", id = UrlParameter.Optional },
|
|
// Add the namespace of your desktop controllers here
|
|
new[] { "YourApplication.Controllers" }
|
|
);
|
|
} |