mirror of
https://github.com/chyzy/RSystem-MVC
synced 2024-12-01 17:25:27 +01:00
24 lines
583 B
C#
24 lines
583 B
C#
|
using System.Web.Mvc;
|
|||
|
|
|||
|
namespace RSystem.Areas.Admin
|
|||
|
{
|
|||
|
public class AdminAreaRegistration : AreaRegistration
|
|||
|
{
|
|||
|
public override string AreaName
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return "Admin";
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public override void RegisterArea(AreaRegistrationContext context)
|
|||
|
{
|
|||
|
context.MapRoute(
|
|||
|
"Admin_default",
|
|||
|
"Admin/{controller}/{action}/{id}",
|
|||
|
new { action = "Index",controller="Panel", id = UrlParameter.Optional }
|
|||
|
);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|