Exemplo n.º 1
0
 private void ImportSaveContent(ICollection <ContentBindingList> Content, int SiteID, int ContentParentID)
 {
     foreach (var item in Content)
     {
         item.SiteID = SiteID;
         item.ContentPropertyParentID = ContentParentID;
         int _ContentID = new ContentBLL().Save(item);
         if (item.Items.Any())
         {
             ImportSaveContent(item.Items, SiteID, _ContentID);
         }
     }
 }
Exemplo n.º 2
0
 private void ImportSaveContent(ICollection<ContentBindingList> Content, int SiteID, int ContentParentID)
 {
     foreach (var item in Content)
     {
         item.SiteID = SiteID;
         item.ContentPropertyParentID = ContentParentID;
         int _ContentID = new ContentBLL().Save(item);
         if (item.Items.Any())
             ImportSaveContent(item.Items, SiteID, _ContentID);
     }
 }