Skip to content

Instantly share code, notes, and snippets.

@diegobersano
Created May 29, 2016 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegobersano/72db18f6eb1e1b2e0f7142173374044d to your computer and use it in GitHub Desktop.
Save diegobersano/72db18f6eb1e1b2e0f7142173374044d to your computer and use it in GitHub Desktop.
using System.Web.Mvc;
using System.Web.Routing;
namespace Internacionalization
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{culture}/{controller}/{action}/{id}",
defaults: new { culture = string.Empty, controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment