25 lines
674 B
C#
25 lines
674 B
C#
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 }
|
|
);
|
|
}
|
|
}
|
|
} |