Example #1
0
 public List<MemoryStream> GetAttachments(ZCMSPage page)
 {
     List<MemoryStream> mses = new List<MemoryStream>();
     if (page.Properties.Where(p => p is ImageListProperty).Any())
     {
         var prop = page.Properties.Where(p => p is ImageListProperty).FirstOrDefault();
         List<string> images = (List<string>)prop.PropertyValue;
         foreach (var item in images)
         {
             mses.Add(FileRepository.RetrieveAttachment(item));
         }
     }
     return mses;
 }
Example #2
0
        public void TestMethod1()
        {
            worker.ConfigRepository.WireUpVersioning();

            ZCMSPage page = new ZCMSPage(new ArticlePage());
        }