Beispiel #1
0
 public byte[] GetGeneralSitemapFile()
 {
     try
     {
         List <SiteMapFileInformation> generateFilesInformation = GetSiteMapFilesInformation();
         byte[] xmlFile = SitemapXmlGenerator.GetSitemapGeneral(generateFilesInformation);
         return(xmlFile);
     }
     catch
     {
         throw;
     }
 }
Beispiel #2
0
 public byte[] GeGZipedSitemapFile(int number)
 {
     try
     {
         if (number < 1)
         {
             throw new Exception("The number can not be less than one");
         }
         List <SiteMap> items             = DBHelper.Instance.GetIntervalSiteMaps(number).ToList();
         byte[]         compressedXMLFile = CompressHelper.GetGZipFile(SitemapXmlGenerator.GetSiteMap(items));
         return(compressedXMLFile);
     }
     catch
     {
         throw;
     }
 }