public async Task DeleteAsync() { var deleteTasks = new List <Task> (); foreach (var item in DataCollection) { var m = new TimeEntryModel(item); deleteTasks.Add(m.DeleteAsync()); } await Task.WhenAll(deleteTasks); }
public async Task DeleteAsync() { var deleteTasks = new List <Task> (); foreach (var item in dataObjects) { var m = new TimeEntryModel(item); deleteTasks.Add(m.DeleteAsync()); } await TTask.WhenAll(deleteTasks); Dispose(); }
public async Task DeleteAsync () { var deleteTasks = new List<Task> (); foreach (var item in dataObjects) { var m = new TimeEntryModel (item); deleteTasks.Add (m.DeleteAsync ()); } await TTask.WhenAll (deleteTasks); Dispose (); }
public async Task DeleteAsync () { var deleteTasks = new List<Task> (); foreach (var item in Group) { var m = new TimeEntryModel (item); deleteTasks.Add (m.DeleteAsync ()); } await Task.WhenAll (deleteTasks); }