private void btnUploadtoGGDrive_Click(object sender, RoutedEventArgs e) { string id = GoogleDriveFilesRepository.CreateFolder("1, Demo"); foreach (FileDesignDTO dgr in dgvImageInfo.ItemsSource) { Thread thread = new Thread(() => { UploadTOGGDrive(dgr, id); }); thread.IsBackground = true; thread.Start(); } }
public ActionResult CreateFolder(String FolderName) { GoogleDriveFilesRepository.CreateFolder(FolderName); return(RedirectToAction("GetGoogleDriveFiles")); }