Walk by faith code, hack, curious

ASP.NET MVC 路由

routes.MapRoute(
“Default”, // Route name
“{controller}/{action}/{id}”, // URL with parameters
new { controller = “Home”, action = “Index”, id = UrlParameter.Optional }, // Parameter defaults
new[] { “PaymentCenter.Controllers” }
);

===========
AreaRegistration.RegisterAllAreas();

RegisterRoutes(RouteTable.Routes);

==================

[HandleError]
public class HomeController : Controller
{
public ActionResult Index()
{
//转入Portal主站
return RedirectToRoute(“Portal_default”);
}
}