mirror of
https://github.com/Varorbc/PaySharp.git
synced 2026-10-21 08:19:58 +08:00
20 lines
503 B
C#
20 lines
503 B
C#
using System.Web.Mvc;
|
|
using System.Web.Routing;
|
|
|
|
namespace PaySharp.Demo_Net_
|
|
{
|
|
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 = "Home", action = "Index", id = UrlParameter.Optional }
|
|
);
|
|
}
|
|
}
|
|
}
|