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.

30 lines
769 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace BookingWeb
{
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: "Default",
url: "{client}/{lang}/{controller}/{action}.aspx",
defaults: new { controller = "User", action = "Login" }
);
}
}
}