BuildFeed/Areas/admin/adminAreaRegistration.cs

24 lines
585 B
C#
Raw Normal View History

2014-10-11 06:57:02 +08:00
using System.Web.Mvc;
namespace BuildFeed.Areas.admin
{
public class adminAreaRegistration : AreaRegistration
{
public override string AreaName
{
get
{
return "admin";
}
}
public override void RegisterArea(AreaRegistrationContext context)
{
context.MapRoute(
"Admin (Default)",
2014-10-11 06:57:02 +08:00
"admin/{controller}/{action}/{id}",
new { action = "index", controller = "base", id = UrlParameter.Optional }
2014-10-11 06:57:02 +08:00
);
}
}
}