Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public bool Delete(object Id)
 {
     return(TimeEntry.Delete(Id) == 1);
 }