コード例 #1
0
        public static void RegisterRoutes(RouteCollection routes)
        {
            //Устанавливаем сервис аутентификации
            routes.Add(Installer.CreateAuthenticationRoute("BGAuth"));//метаданные сервиса http://localhost:52740/BGAuth?wsdl

            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
                );
        }