Beispiel #1
0
        public void Update(EmployeeEntitlement entitlementUpdate, int id)
        {
            var employeeEntitlement = GetEmployeeEntitlement(id);

            employeeEntitlement.EmployeeTypeEN = entitlementUpdate.EmployeeTypeEN;
            employeeEntitlement.EmployeeTypeAR = entitlementUpdate.EmployeeTypeAR;
            _contextEntitle.SaveChanges();
        }
Beispiel #2
0
 public void Add(EmployeeEntitlement empEnt, int concernId)
 {
     empEnt.ConcernId = concernId;
     _contextEntitle.EmployeeEntitlements.Add(empEnt);
     _contextEntitle.SaveChanges();
 }