demo20230512/Areas/admin/adminAreaRegistration.cs

25 lines
674 B
C#
Raw Normal View History

2023-05-12 10:20:28 +08:00
using System.Web.Mvc;
namespace Weee.Areas.Admin
{
public class adminAreaRegistration : AreaRegistration
{
public override string AreaName
{
get
{
return "admin";
}
}
public override void RegisterArea(AreaRegistrationContext context)
{
context.MapRoute(
name:"admin_default",
url:"admin/{controller}/{action}/{id}",
namespaces: new string[] { "Weee.Areas.admin.Controllers" },
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}
}