예제 #1
0
        public static RoutesModel CreateGalleryRoute(int galleryId, string route, IConfigRepository cRep)
        {
            var r = Objects.StaticRoute.Create(route, "Gallery", "StaticView", galleryId);

            var rm = new RoutesModel(cRep.CreateRoute(r));

            return(rm);
        }
예제 #2
0
        public static RoutesModel CreateArticleRoute(int articleTypeId, int articleId, string route, IConfigRepository cRep, IArticleRepository arRep)
        {
            var at = arRep.FetchType(articleTypeId);
            var r  = Objects.StaticRoute.Create(route, "Article", at.Action, articleId);

            var rm = new RoutesModel(cRep.CreateRoute(r));

            return(rm);
        }