You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
930 B
C#
36 lines
930 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
using System.Web.Routing;
|
|
|
|
namespace BookingJieFeng
|
|
{
|
|
public class RouteConfig
|
|
{
|
|
public static void RegisterRoutes(RouteCollection routes)
|
|
{
|
|
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
|
|
|
routes.MapRoute(
|
|
name: "Common",
|
|
url: "Common/{action}.aspx",
|
|
defaults: new { controller = "Common", action = "GetCaptcha" }
|
|
);
|
|
|
|
routes.MapRoute(
|
|
name: "empty",
|
|
url: "",
|
|
defaults: new { controller = "User", action = "Login" }
|
|
);
|
|
|
|
routes.MapRoute(
|
|
name: "Default",
|
|
url: "{controller}/{action}.aspx",
|
|
defaults: new { controller = "User", action = "Login" }
|
|
);
|
|
}
|
|
}
|
|
}
|