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); } } }
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); } }