mirror of
https://github.com/chyzy/RSystem-MVC
synced 2024-12-25 10:20:29 +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 }
|
|||
|
);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|