Ejemplo n.º 1
0
        public void Delete(EmployeeComplex employee)
        {
            if (employee == null)
            {
                throw new ArgumentNullException(nameof(employee), $"{nameof(employee)} is null.");
            }

            base.Delete(employee);
        }
Ejemplo n.º 2
0
        public void Update(EmployeeComplex employee)
        {
            if (employee == null)
            {
                throw new ArgumentNullException(nameof(employee), $"{nameof(employee)} is null.");
            }
            if (employee.EmployeeClassification == null)
            {
                throw new ArgumentNullException(nameof(employee), $"{nameof(employee.EmployeeClassification)} is null.");
            }

            base.Update(employee);
        }
Ejemplo n.º 3
0
        public int Create(EmployeeComplex employee)
        {
            if (employee == null)
            {
                throw new ArgumentNullException(nameof(employee), $"{nameof(employee)} is null.");
            }
            if (employee.EmployeeClassification == null)
            {
                throw new ArgumentNullException(nameof(employee), $"{nameof(employee.EmployeeClassification)} is null.");
            }

            return(Insert <EmployeeComplex, int>(employee));
        }