//employee public void addEmployee(Employee e) { int id = e.Id; if (e.age < 18) { throw new Exception("under 18 no possibility to work"); } else if (Dal.EmployeeExist(id)) { throw new Exception("This Employer id already use"); } else { Dal.addEmployee(e); } }