RouteModel CreateModel(RouteBase rb, int index)
        {
            var rm = new RouteModel
            {
                Order = index.ToString(),
                Type = rb.GetType().FullName,
                Route = rb,
                RouteExistingFiles = GetRouteExistingFiles(rb)
            };

            return rm;
        }
        IEnumerable<RouteModel> CreateRouteModelData(string name, ModuleRouteCollection rr, ref int index)
        {
            var models = new List<RouteModel>();
            var rm = new RouteModel
            {
                Order = index.ToString(),
                RouteExistingFiles = GetRouteExistingFiles(rr),
                Name = name,
                Url = rr.RoutePath,
                Type = rr.GetType().FullName,
                Route = rr
            };

            models.Add(rm);
            index++;
            foreach (var r in rr)
            {
                CreateRouteData(models, ref index, name, r);
            }
            return models;
        }