Exemplo n.º 1
0
 public void Clone(Site @from, Site to, SiteCloneContext siteCloneContext)
 {
     System.Collections.Generic.IList <Webpage> webpages = _session.QueryOver <Webpage>().Where(webpage => webpage.Site.Id == to.Id).List();
     foreach (Webpage webpage in webpages)
     {
         Webpage original = siteCloneContext.GetOriginal(webpage);
         if (original != null)
         {
             _cloneWebpageSiteParts.Clone(original, webpage, siteCloneContext);
         }
     }
 }
Exemplo n.º 2
0
        public void Clone(Site @from, Site to, SiteCloneContext siteCloneContext)
        {
            var webpages = _session.QueryOver <Webpage>().Where(webpage => webpage.Site.Id == to.Id).List();

            foreach (var webpage in webpages)
            {
                var original = siteCloneContext.GetOriginal(webpage);
                if (original != null)
                {
                    _cloneWebpageSiteParts.Clone(original, webpage, siteCloneContext);
                }
            }
        }