Beispiel #1
0
        public ISitePublication Create(ISite_Root siteRoot)
        {
            if (siteRoot == null)
            {
                return(null);
            }

            return(new SitePublication
            {
                Code = CodeFactory.Create(siteRoot),
                Name = NameFactory.Create(siteRoot)
            });
        }
Beispiel #2
0
        public string Create(IEntitled_Product item)
        {
            var siteRoot = SiteRootsContext.SiteRoots.FirstOrDefault(sr => item._Path.StartsWith(sr._Path));

            return(PublicationCodeFactory.Create(siteRoot));
        }