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; }
public attachment Add(attachment obj) { base.Add(obj); return(obj); }