示例#1
0
        /// <summary>
        /// Downloads the file given by FileID
        /// </summary>
        /// <param name="FileID">FileID of the File to Download</param>
        /// <returns>true if file is found successfully</returns>
        private bool DownloadFile(int FileID)
        {
            File fileToDownload = FileBLL.GetNullableByID(FileID);

            if (fileToDownload == null)
            {
                return(false);
            }
            else
            {
                return(FileBLL.Transmit(fileToDownload.ID, fileToDownload.FileName));
            }
        }