using System.Collections.Generic; using DR.WCMS.Web.Mvc.Routing; namespace DR.FV2016.Web { public class WebCmsRouteConfig { public static void RegisterCmsRoutes(List cmsRoutings) { //cmsRoutings.MapCmsRoute( // articleWrapper => articleWrapper.IsFrontPage(), // (frontpageController, articleWrapper) => frontpageController.Index(articleWrapper) //); //cmsRoutings.MapCmsRoute( // articleWrapper => articleWrapper.IsArticle() && articleWrapper.PathMatches("^/channels/nyheder/politik/valg2016/se-din-stemmeseddel"), // (constituencyController, articleWrapper) => constituencyController.Index() //); //cmsRoutings.MapCmsRoute( // articleWrapper => articleWrapper.IsArticle() && articleWrapper.PathMatches("^/channels/nyheder/politik/valg2016/video/.*"), // (articleController, articleWrapper) => articleController.Video(articleWrapper) //); //cmsRoutings.MapCmsRoute( // articleWrapper => articleWrapper.IsArticle() && articleWrapper.PathMatches("^/channels/nyheder/politik/valg2016/Live/.*"), // (articleController, articleWrapper) => articleController.Live(articleWrapper) //); //cmsRoutings.MapCmsRoute( // articleWrapper => articleWrapper.IsArticle() && articleWrapper.PathMatches("^/channels/nyheder/politik/fv15/dan-regering/.*"), // (articleController, articleWrapper) => articleController.Live(articleWrapper) //); // cmsRoutings.MapCmsRoute( // articleWrapper => articleWrapper.IsArticle(), // (articleController, articleWrapper) => articleController.Index(articleWrapper) // ); // cmsRoutings.MapCmsRoute( // articleWrapper => articleWrapper.IsSlideShowArticle(), // (slideShowController, articleWrapper) => slideShowController.Index(articleWrapper) //); } } }