public void DeleteTimesheet(int TimesheetID) { //first delete expense entries ExpenseEntry.Delete(ExpenseEntry.Columns.Timesheetid, TimesheetID, this.UserName); //second delete time entries TimeEntry.Delete(TimeEntry.Columns.Timesheetid, TimesheetID, this.UserName); //finally delete the time sheet this.Delete(TimesheetID); }
public bool Delete(object Id) { return(TimeEntry.Delete(Id) == 1); }