-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScheduleAreaRegistration.cs
39 lines (37 loc) · 1.31 KB
/
ScheduleAreaRegistration.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System.Web.Mvc;
namespace MvcApplicationIPS2.Web.Areas.Schedule
{
public class ScheduleAreaRegistration : AreaRegistration
{
public override string AreaName
{
get
{
return "Schedule";
}
}
public override void RegisterArea(AreaRegistrationContext context)
{
context.MapRoute(
"Schedule_sysmod_abbrev",
"ScheduleSM/{sysid}/{moduleid}",
new { controller = "Default", action = "SysMod", sysid = UrlParameter.Optional, moduleid = UrlParameter.Optional }
);
context.MapRoute(
"Schedule_sysmod",
"Schedule/SysMod/{sysid}/{moduleid}",
new { controller = "Default", action = "SysMod", sysid = UrlParameter.Optional, moduleid = UrlParameter.Optional}
);
context.MapRoute(
"Schedule_default0",
"Schedule/{action}/{id}",
new { controller="Default", action = "Index", id = UrlParameter.Optional }
);
context.MapRoute(
"Schedule_default",
"Schedule/{controller}/{action}/{id}",
new { action = "Index", id = UrlParameter.Optional }
);
}
}
}