public ISitePublication Create(ISite_Root siteRoot) { if (siteRoot == null) { return(null); } return(new SitePublication { Code = CodeFactory.Create(siteRoot), Name = NameFactory.Create(siteRoot) }); }
public string Create(IEntitled_Product item) { var siteRoot = SiteRootsContext.SiteRoots.FirstOrDefault(sr => item._Path.StartsWith(sr._Path)); return(PublicationCodeFactory.Create(siteRoot)); }