public async Task <ActionResult <List <GetFileUploadResource> > > GetAllFileList() // 讀取上傳檔案陣列 { List <GetFileUploadResource> FileUploadList = new List <GetFileUploadResource>(); FileUploadList = await _FileUploadService.GetFileList(); if (FileUploadList == null) { return(BadRequest(new { message = "查無資料" })); } return(Ok(FileUploadList)); }