示例#1
0
        public FileDataObject FetchThumbnail(int fileId, int ideaId)
        {
            if (fileId == 0)
            {
                throw new CustomException("Invalid parameters.");
            }
            FileDataObject file = fileData.FetchThumbnail(fileId, ideaId);

            if (file == null)
            {
                throw new CustomException("File not found.");
            }
            return(file);
        }