Esempio n. 1
0
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapSitemap(() => new SitemapUrlSet
            {
                "http://kievalt.net",
                {"http://kievalt.net/home/calendar/", DateTime.UtcNow, SitemapChangeFrequency.Daily, 1 },
            });

            routes.MapRoute(
                "Default", // Route name
                "{controller}/{action}/{id}", // URL with parameters
                new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
            );
        }