Esempio n. 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"));
        }
Esempio n. 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"));
        }
Esempio n. 3
0
        public IActionResult DownloadGeonodeFile(string id)
        {
            var hs = new HomeControllerService();

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