public async Task <string> CreateGDriveDir(string FolderName) { GoogleServiceController GSC = new GoogleServiceController(); DriveService DS = GSC.GetDriveService(); DriveController dc = new DriveController(DS); var f = dc.FindFiles(false, "application/vnd.google-apps.folder"); bool exist = f.ContainsValue(FolderName); if (exist) { return(f.Where(x => x.Value == FolderName).First().Key); } return(dc.CreateGDriveDir(FolderName)); }