using System.Web.Mvc; namespace DSWeb.Areas.OA { public class AccountAreaRegistration : AreaRegistration { public override string AreaName { get { return "OA"; } } public override void RegisterArea(AreaRegistrationContext context) { context.MapRoute( "OA_default", "OA/{controller}/{action}/{id}", new { action = "Index", id = UrlParameter.Optional } ); //context.MapRoute( // "TruckMng_Edit_default", // "TruckMng/{controller}/{action}/{id}", // new { action = "Edit", id = UrlParameter.Optional } //); } } }