public IActionResult DownloadResult() { var hs = new HomeControllerService(); var downloadPath = $@"./Result/result.tar"; return(System.IO.File.Exists(downloadPath) ? hs.DownloadFile(downloadPath, "result.tar") : this.View("Index")); }
public IActionResult DownloadDockerfiles(UserConfiguration config) { var hs = new HomeControllerService(); this.UploadFile(config); hs.CreateGamsDockerfile(config); //hs.CreateModelDockerfile(config); var dlFile = hs.CreateDockerZipFile(); return(hs.DownloadFile(dlFile, "dockerfile.zip")); }
public IActionResult DownloadGeonodeFile(string id) { var hs = new HomeControllerService(); return(hs.DownloadFile($@"http://localhost:8011/documents/{id}/download", "geonode.zip")); }