/// <summary> /// Recall a time entry. /// </summary> /// <returns></returns> public virtual async Tasks.Task <bool> Recall() { msdyn_timeentry time = this.Time; if (!this.IsSubmitted()) { return(false); } TimeEntryRecaller recaller = new TimeEntryRecaller(); recaller.DataAccess = this.DataAccess; recaller.addTimeEntry(time); return(await recaller.ExecuteAction()); }
internal async Tasks.Task <bool> RecallSelectedTimeEntries() { TimeEntryRecaller recaller = new TimeEntryRecaller(); recaller.DataAccess = this.DataAccess; foreach (msdyn_timeentry timeEntry in this.SelectedEntries()) { msdyn_timeentry_msdyn_entrystatus?status = timeEntry.EntryStatus; if (status != null && status.Value == msdyn_timeentry_msdyn_entrystatus.Submitted) { recaller.addTimeEntry(timeEntry); } } return(await recaller.ExecuteAction()); }