Beispiel #1
0
 private void ImportSavePages(ICollection <PageBindingListWithCultures> Pages, int SiteID, int PageParentID)
 {
     foreach (var item in Pages)
     {
         item.SiteID       = SiteID;
         item.PageParentID = PageParentID;
         int _PageID = new PageBLL().Save(item, false);
         if (item.Items.Any())
         {
             ImportSavePages(item.Items, SiteID, _PageID);
         }
     }
 }
Beispiel #2
0
 private void ImportSavePages(ICollection<PageBindingListWithCultures> Pages, int SiteID, int PageParentID)
 {
     foreach (var item in Pages)
     {
         item.SiteID = SiteID;
         item.PageParentID = PageParentID;
         int _PageID = new PageBLL().Save(item,false);
         if (item.Items.Any())
             ImportSavePages(item.Items, SiteID, _PageID);
     }
 }