Ejemplo n.º 1
0
        public static bool AddEmployeeBL(Employee newEmployee)
        {
            bool employeeAdded = false;
            try
            {
                if (ValidateEmployee(newEmployee))
                {
                    employeeDL employeeDL = new EmployeeDL();
                    employeeAdded = employeeDL.AddemployeeDL(newEmployee);
                }
            }
            catch (EmsException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return employeeAdded;
        }