Beispiel #1
0
        protected void Application_Start()
        {
            var entityRoutePopulator = new EntityRouteRegistrar <IWantRESTExposure>
            {
                Routes  = RouteTable.Routes,
                TypeMap = new VerbToTypeMapper()
            };

            entityRoutePopulator.RegisterRoutes();
        }
Beispiel #2
0
        protected void Application_Start()
        {
            var entityRoutePopulator = new EntityRouteRegistrar<IWantRESTExposure>
            {
                Routes = RouteTable.Routes,
                TypeMap = new VerbToTypeMapper()
            };

            entityRoutePopulator.RegisterRoutes();
        }
Beispiel #3
0
        private static string RESTUrl(object param)
        {
            var routeToken = EntityRouteRegistrar <IWantRESTExposure> .RouteTokenOfType(typeof(TType));

            return(String.Format("{0}/{1}/{2}/", BaseRestUri, routeToken, param));
        }