private static FileId SaveAttachmentFile(attachment attachment)
        {
            byte[] data = Convert.FromBase64String(attachment.data.Value);

            return AttachmentFolder.Save(new MemoryStream(data));
        }
		public void Remove(attachment obj)
		{
			base.Remove(obj);
		}
        private static string GetAttachmentFileName(attachment attachment)
        {
            var name = attachment.filename;

            if (string.IsNullOrEmpty(name))
                name = attachment.desc;

            return name;
        }
		public void Insert(int index, attachment obj)
		{
			base.Insert(index, obj);
		}
		public attachment Add(attachment obj)
		{
			base.Add(obj);
			return obj;
		}
Ejemplo n.º 6
0
 public void Remove(attachment obj)
 {
     base.Remove(obj);
 }
Ejemplo n.º 7
0
 public void Insert(int index, attachment obj)
 {
     base.Insert(index, obj);
 }
Ejemplo n.º 8
0
 public attachment Add(attachment obj)
 {
     base.Add(obj);
     return(obj);
 }