Exemple #1
0
        public void DownloadFile_Inlocalfile_FromS3()
        {
            string path = Helper.GetDatasetPath("projects.csv");
            string key  = "test_projects.csv";

            aws.DownloadFile(path, key);
        }
Exemple #2
0
 public ActionResult Get(string projectName)
 {
     try
     {
         string datasourcepath = Helper.GetDatasetPath("projectsRelationships.json");
         s3.DownloadFile(datasourcepath, $"force/{projectName}.json");
         return(File("~/force.html", "text/html"));
     }
     catch (Exception e)
     {
         return(new JsonResult(e.Message + e.StackTrace));
     }
 }