注册路由的应用
public class ReceptionAreaRegistration : AreaRegistration
{
public override string AreaName
{
get
{
return "Reception";
}
}
public override void RegisterArea(AreaRegistrationContext context)
{
context.MapRoute(
"Reception_default",
"Reception/{controller}/{action}/{id}",
new { action = "Index", id = UrlParameter.Optional }
);
}
}