public void AddEmployee(Employee e) { DateTime d = DateTime.Now.AddYears(-18); if (d <= e.DateBirth.Date) { throw new Exception("A professional must be over the age of 18"); } dal.AddEmployee(e); }