mirror of
https://github.com/chyzy/RSystem-MVC
synced 2024-11-26 00:05:27 +01:00
25 lines
662 B
C#
25 lines
662 B
C#
using System.Web.Mvc;
|
|
|
|
namespace RSystem.Areas.Recruit
|
|
{
|
|
public class RecruitAreaRegistration : AreaRegistration
|
|
{
|
|
public override string AreaName
|
|
{
|
|
get
|
|
{
|
|
return "Recruit";
|
|
}
|
|
}
|
|
|
|
public override void RegisterArea(AreaRegistrationContext context)
|
|
{
|
|
context.MapRoute(
|
|
"Recruit_default",
|
|
"{lang}/Recruit/{controller}/{action}/{id}",
|
|
new { action = "Index", controller="Home", id = UrlParameter.Optional,lang="pl"},
|
|
constraints: new { lang = "pl|en" }
|
|
);
|
|
}
|
|
}
|
|
} |