Esempio n. 1
0
        public void Alterar(Entities.tb_timecard timecard, Entities.tb_points points)
        {
            Entities.tb_timecard list  = db.tb_timecard.First(t => t.id_timecard == timecard.id_timecard);
            Entities.tb_points   list1 = db.tb_points.First(t => t.id_point == points.id_point);
            list.hr_fixedInput     = list.hr_fixedInput;
            list.hr_fixedOutput    = list.hr_fixedOutput;
            list.hr_fixedInput     = list.hr_fixedInput;
            list.hr_fixedIntOutput = list.hr_fixedIntOutput;
            list1.hr_input         = list1.hr_input;
            list1.hr_output        = list1.hr_output;
            list1.hr_intInput      = list1.hr_intInput;
            list1.hr_intOutput     = list1.hr_intOutput;
            list1.hr_toPay         = list1.hr_toPay;

            db.SaveChanges();
        }
Esempio n. 2
0
        public void Inserir(Entities.tb_points points)
        {
            db.tb_points.Add(points);

            db.SaveChanges();
        }