예제 #1
0
 private int ImportObject(SiteExport SiteContent)
 {
     var _Site = new SiteAllBinding(SiteContent.Site, SiteContent.Cultures);
     _Site.SiteID = 0;
     var _SiteID = Save(_Site);
     ImportSavePages(SiteContent.Pages, _SiteID, 0);
     ImportSaveContent(SiteContent.Content, _SiteID, 0);
     return _SiteID;
 }
예제 #2
0
 private SiteExport ExportObject(int SiteID)
 {
     var _Model = new SiteExport();
     _Model.Site = Get(SiteID);
     _Model.Cultures = new CultureBLL().Get(SiteID);
     _Model.Pages = new PageBLL().GetWithCultures(SiteID);
     _Model.Content = new ContentBLL().Export(SiteID);
     return _Model;
 }