/// <summary>
 /// add Trainee to the DataBase
 /// </summary>
 /// <param name="trainee"></param>
 public void AddTrainee(Trainee trainee)
 {
     if (trainee.Address == null || trainee.Address == "" || trainee.BirthDate == default(DateTime) ||
         trainee.FirstName == null || trainee.FirstName == "" ||
         trainee.LastName == null || trainee.LastName == "" || trainee.PhoneNumber == null || trainee.PhoneNumber == "" ||
         trainee.TeacherName == null || trainee.TeacherName == "" ||
         trainee.DrivingSchoolName == null || trainee.DrivingSchoolName == "")
     {
         throw new Exception("חובה למלא את כל הפרטים");
     }
     BE.Trainee ExsistTrainee = IDAL.GetTraineeCopy(trainee.ID);
     if (ExsistTrainee != null)
     {
         throw new Exception("התלמיד כבר קיים במערכת");
     }
     IDAL.AddTrainee(trainee);
 }
        /// <summary>
        /// הוספת נבחן חדש לרשימת הנבחנים כאשר: הנבחן בגיל המתאים ואינו נמצא כבר ברשימה
        /// אם כבר נמצא ברשימה נשלח התלמיד לפונקציית עדכון פרטיו
        /// </summary>
        /// <param name="mytrainee">נבחן</param>
        public void AddTrainee(Trainee mytrainee)
        {
            DateTime date = DateTime.Now;
            int      age  = date.Year - mytrainee.TraineeDateOfBirth.Year;

            if (age < Configuration.MINTraineeAge)
            {
                throw new Exception("ERROR - You are to young to be a trainee");
            }
            if (SearchTeacher(mytrainee.TraineeNameOfTeacher, mytrainee.TraineeNameOfSchool) == false)
            {
                throw new Exception("Techer information is incorrect");
            }
            try
            {
                dal.AddTrainee(mytrainee);
            }
            catch (Exception e)
            {
                throw e;
            }
        }