public Timesheet RemoveTimesheet(int timesheet_id) { Timesheet timesheet = context.Timesheets.Find(timesheet_id); context.Timesheets.Remove(timesheet); return(timesheet); }
public void UpdateTimehseet(Timesheet timesheet) { context.Entry(timesheet).State = EntityState.Modified; }
public void InsertTimesheet(Timesheet timesheet) { context.Timesheets.Add(timesheet); }