public async Task <IActionResult> MenuC32DownloadAttachmentZip(int meetingid) { ModelMenuC32_DownloadFile e = await _IDocMenuCService.MenuC32DownloadAttachmentZipAsync(meetingid); if (e != null) { return(Ok(e)); } else { return(BadRequest()); } }
public async Task <IActionResult> GetC32DownloadFileById(int meetingid, int id) { ModelMenuC32_DownloadFile e = await _IDocMenuCService.GetC32DownloadFileByIdAsync(meetingid, id); if (e != null) { return(Ok(e)); } else { return(BadRequest()); } }
public async Task <ModelMenuC32_DownloadFile> MenuC32DownloadAttachmentZipAsync(int meetingid) { var file_download = await _IDocMenuC3Repository.MenuC32DownloadAttachmentNameAsync(meetingid); if (file_download != null) { string fileZipName = meetingid + "-" + DateTime.Now.ToString("ddMMyyHHtt") + ".zip"; ModelMenuC32_DownloadFile download_file = new ModelMenuC32_DownloadFile(); download_file.filename = fileZipName; download_file.filebase64 = ServerDirectorys.DownloadFileC3Tab2(_IEnvironmentConfig.PathArchive, _IEnvironmentConfig.PathDocument, FolderDocument.menuC3Tab2, meetingid.ToString(), fileZipName, file_download.file1name, file_download.file2name, file_download.file3name); if (download_file.filebase64 != null) { return(download_file); } } return(null); }