Example #1
0
        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();
        }
Example #2
0
        public void Remover(Entities.tb_timecard ticd)
        {
            db.tb_timecard.Remove(ticd);

            db.SaveChanges();
        }
Example #3
0
        public void Inserir(Entities.tb_timecard ticd)
        {
            db.tb_timecard.Add(ticd);

            db.SaveChanges();
        }