public List <FileListModel> GetAmazonS3List(int planId, string directory, PlatformInsertModel planData) { dynamic platformDetail = JObject.Parse(planData.JsonData); AmazonS3 s3 = new AmazonS3(); return(s3.GetDirectoryList(directory, platformDetail.apiAccessKey.ToString() + "-" + platformDetail.apiSecretKey.ToString() + "-" + platformDetail.region.ToString())); }