public void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" }); routes.KMap( "Error", "View/Default/Error/View_Error_OnError", new {controller="Error", action="View_Error_OnError",mode="View", theme = "Default", controllerAssembly = "Eshop.Controllers", controllerNamespace = "Eshop.Controllers" }, new { controller = @"[^\.]*" }).RouteHandler = new KMvcRouteHandler(); routes.KMap( "Default", "{mode}/{theme}/{controller}/{action}", new { controller = "Home", action = "View_Home_Index", mode = "View",theme="Default", controllerAssembly = "Eshop.Controllers", controllerNamespace = "Eshop.Controllers" }, new { controller = @"[^\.]*" }).RouteHandler = new KMvcRouteHandler(); routes.KMap("LanguageSupported", "{mode}/{theme}/{lang}/{controller}/{action}", new { controllerAssembly = "Eshop.Controllers", controllerNamespace = "Eshop.Controllers" } , new { controller = @"[^\.]*" }).RouteHandler = new KMvcRouteHandler(); FillEnvironmentInfo(); }
public void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" }); routes.KMap( "Authenticate", "Account/LogOn/{email}/{password}" , new { controller = "Account", action = "Post_LogOn", controllerAssembly = "Eshop.Controllers", controllerNamespace = "Eshop.Controllers" }, new { email = @"^[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$" }). RouteHandler = new KMvcRouteHandler(); routes.KMap( "Logout", "Account/Logout/{email}" , new { controller = "Account", action = "Post_LogOut", controllerAssembly = "Eshop.Controllers", controllerNamespace = "Eshop.Controllers" }, new { email = @"^[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$" }). RouteHandler = new KMvcRouteHandler(); routes.KMap( "RegisterUser", "Account/Register/{email}/{name}/{password}" , new { controller = "Account", action = "Post_Register", controllerAssembly = "Eshop.Controllers", controllerNamespace = "Eshop.Controllers" }, new { email = @"^[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$" }). RouteHandler = new KMvcRouteHandler(); routes.KMap( "Default", "{mode}/{theme}/{controller}/{action}", new { controller = "Home", action = "View_Index", mode = "View", theme="Default", controllerAssembly = "Eshop.Controllers", controllerNamespace = "Eshop.Controllers" }, new { controller = @"[^\.]*" }).RouteHandler = new KMvcRouteHandler(); routes.KMap("LanguageSupported", "{mode}/{theme}/{lang}/{controller}/{action}", new {theme="Default" , controllerAssembly = "Eshop.Controllers", controllerNamespace = "Eshop.Controllers" } , new { controller = @"[^\.]*" }).RouteHandler = new KMvcRouteHandler(); FillEnvironmentInfo(); }
public void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" }); routes.IgnoreRoute("{resource}.css/{*pathInfo}"); routes.KMap( "Error", "View/Default/Error/View_Error_OnError", new { controller = "Error", action = "View_Error_OnError", mode = "View", theme = "Default", controllerAssembly = "IdehCo.Controllers", controllerNamespace = "IdehCo.Controllers" }, new { controller = @"[^\.]*" }).RouteHandler = new KMvcRouteHandler(); routes.KMap( "Operation", "{controller}/{action}", new { controllerAssembly = "IdehCo.Controllers", controllerNamespace = "IdehCo.Controllers" }, new { controller = @"[^\.]*" }).RouteHandler = new KMvcRouteHandler(); routes.KMap( "HomeLink", "/Ideh/View/EntranceTheme/{lang}/Entrance/View_Entrance_Index", new { lang = DependencyResolver.Current.GetService<ICultureHelper>().GetCurrentCulture().Name }, new { controller = @"[^\.]*" }).RouteHandler = new KMvcRouteHandler(); routes.KMap( "Default", "{domain}/{mode}/{theme}/{lang}/{controller}/{action}/{id}", new { controller = "Root", action = "View_Root_Index", mode = "View", lang = "fa-IR", theme = "Default", controllerAssembly = "IdehCo.Controllers", controllerNamespace = "IdehCo.Controllers", domain = "Root", id = UrlParameter.Optional }, new { controller = @"[^\.]*" }).RouteHandler = new KMvcRouteHandler(); FillEnvironmentInfo(); }