예제 #1
0
        public Timesheet RemoveTimesheet(int timesheet_id)
        {
            Timesheet timesheet = context.Timesheets.Find(timesheet_id);

            context.Timesheets.Remove(timesheet);
            return(timesheet);
        }
예제 #2
0
 public void UpdateTimehseet(Timesheet timesheet)
 {
     context.Entry(timesheet).State = EntityState.Modified;
 }
예제 #3
0
 public void InsertTimesheet(Timesheet timesheet)
 {
     context.Timesheets.Add(timesheet);
 }