internal static async Task <bool> replaceOldTasksWithNewTasks(StorageFile tempLoadedTask) { bool finishedSyncing = false; ObservableCollection <ToDoTask> listOfNewTasks = await getListOfTasksFromFile(tempLoadedTask); if (listOfNewTasks != null) { ToDoTask.ReplaceOldTasksWithNewTasks(listOfNewTasks); finishedSyncing = await new FileIOService().saveData(); } return(finishedSyncing); }