예제 #1
0
        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"));
        }
예제 #2
0
        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"));
        }
예제 #3
0
        public IActionResult DownloadGeonodeFile(string id)
        {
            var hs = new HomeControllerService();

            return(hs.DownloadFile($@"http://localhost:8011/documents/{id}/download", "geonode.zip"));
        }