예제 #1
0
        public InsertWorkShiftByEmpResult InsertAssignWorkShiftByEmp(AssignWorkShiftByEmp entity)
        {
            using (TransactionEntities context = new TransactionEntities())
            {
                var result = context.InsertWorkShiftByEmp(
                    prodDateFrom: entity.ProdDateFrom
                    , prodDateTo: entity.ProdDateTo
                    , empCode: entity.EmpCode
                    , shiftCode: entity.ShiftCode
                    , userCode: entity.UpdateBy
                    ).FirstOrDefault();

                return(result);
            }
        }