public string AttachmentDownload2File(AttachmentDownloadData data, string downloadFilePath) { byte[] bytes = AttachmentDownload(data); string pathAndFileName = downloadFilePath + data.SystemFileName; File.WriteAllBytes(pathAndFileName, bytes); return(pathAndFileName); }
public byte[] AttachmentDownload(AttachmentDownloadData data) { return(PostAsync <AttachmentDownloadData>(data, "AttachmentDownload")); }