示例#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);
 }