using System;
using System.Collections.Generic;
//using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace WebApplication1 {
	public class RouteConfig {
		public static void RegisterRoutes( RouteCollection routes ) {
			routes.IgnoreRoute( "{resource}.axd/{*pathInfo}" );
			routes.IgnoreRoute( "ServicesWeb/{WS}.asmx/{*pathInfo}" );
			//routes.MapRoute(
			//					name: "PersoAMoi",
			//					url: "CtrlrSpecial/ActionSpecialeREST/{unParam}/{unAutre}",
			//					defaults: new { controller = "CtrlrSpecial", action = "ActionSpecialeREST" }
			//			);
			routes.MapRoute(
								name: "Default",
								url: "{controller}/{action}/{id}",
								defaults: new { action = "Index", id = UrlParameter.Optional },
								namespaces: new[] { "WebApplication1.Controllers" }
						);
			//routes.MapRoute(
			//					name: "PourSessionCookieLess",
			//					url: "(S({sessionID}))/{controller}/{action}/{id}",
			//					defaults: new { action = "Index", id = UrlParameter.Optional },
			//					namespaces: new[] { "WebApplication1.Controllers" },
			//					constraints: new { sessionID = "^[a-z0-9]{24}$" }
			//			);
		}
	}
}

