Exemple #1
0
        public static AttachmentDownload GetAttachmentDownload(LoginUser loginUser, int attachmentDownloadID)
        {
            AttachmentDownloads attachmentDownloads = new AttachmentDownloads(loginUser);

            attachmentDownloads.LoadByAttachmentDownloadID(attachmentDownloadID);
            if (attachmentDownloads.IsEmpty)
            {
                return(null);
            }
            else
            {
                return(attachmentDownloads[0]);
            }
        }
Exemple #2
0
 public AttachmentDownload(DataRow row, AttachmentDownloads attachmentDownloads) : base(row, attachmentDownloads)
 {
     _attachmentDownloads = attachmentDownloads;
 }