public void Alterar(Entities.tb_timecard ticd) { Entities.tb_timecard tb = db.tb_timecard.FirstOrDefault(t => t.id_emp == ticd.id_emp); tb.hr_fixedInput = ticd.hr_fixedInput; tb.hr_fixedOutput = ticd.hr_fixedOutput; tb.hr_fixedIntInput = ticd.hr_fixedIntInput; tb.hr_fixedIntOutput = ticd.hr_fixedIntOutput; db.SaveChanges(); }
public void Remover(Entities.tb_timecard ticd) { db.tb_timecard.Remove(ticd); db.SaveChanges(); }
public void Inserir(Entities.tb_timecard ticd) { db.tb_timecard.Add(ticd); db.SaveChanges(); }