24 lines
593 B
C#
24 lines
593 B
C#
using System.Web.Mvc;
|
|
|
|
namespace Chruch.Net.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 { controller = "Dashboard", action = "Index", id = UrlParameter.Optional }
|
|
);
|
|
}
|
|
}
|
|
} |