private List<Route> GetRoutes()
        {
            List<Route> routeList = new List<Route>();

            Route defaultApiRoute = new Route(
                "DefaultApi", "api/{controller}/{id}", new { id = RouteParameter.Optional });

            Route categoriesApiRoute = new Route(
                "CategoriesApi", "api/categories/{action}", new { controller = "categories", action = "create" });

            routeList.Add(defaultApiRoute);
            routeList.Add(categoriesApiRoute);

            return routeList;
        }
        private List<Route> GetRoutes()
        {
            List<Route> routeList = new List<Route>();

            Route defaultApiRoute = new Route(
                "DefaultApi", "api/{controller}/{id}", new { id = RouteParameter.Optional });

            Route PostsApiRoute = new Route(
                "PostsApi", "api/posts/{postId}/{action}", new { controller = "posts" });

            Route PostsCreateApi = new Route(
                "PostCreateApi", "api/posts/{action}", new { controller = "posts", action = "create" });

            routeList.Add(defaultApiRoute);
            routeList.Add(PostsApiRoute);
            routeList.Add(PostsCreateApi);

            return routeList;
        }
        private List<Route> GetRoutes()
        {
            List<Route> routeList = new List<Route>();

            Route defaultApiRoute = new Route(
                "DefaultApi", "api/{controller}/{id}", new { id = RouteParameter.Optional });

            Route ThreadsPostsApiRoute = new Route(
                "ThreadsPostsApi", "api/threads/{threadId}/{action}", new { controller = "threads", action = "posts" });

            routeList.Add(defaultApiRoute);
            routeList.Add(ThreadsPostsApiRoute);

            return routeList;
        }