public FileDataObject Fetch(int ideaId, int fileId) { if (ideaId == 0 || fileId == 0) { throw new CustomException("Invalid parameters."); } FileDataObject file = fileData.Fetch(ideaId, fileId); if (file == null) { throw new CustomException("File not found."); } return(file); }